RHEL

pods处于ContainerCreating状态

坚强是说给别人听的谎言 提交于 2019-11-26 15:47:05
一、错误信息 创建 rc 之后 pods 起不来,一直处于 ContainerCreating 状态 [root@k8s-all-in-one pod-testweb]# kubectl get pods NAME READY STATUS RESTARTS AGE mysql-vmm72 0/1 ContainerCreating 0 2s # 查看pods状态 [root@k8s-all-in-one pod-testweb]# kubectl describe pods mysql-vmm72 Name: mysql-vmm72 Namespace: default Node: 127.0.0.1/127.0.0.1 Start Time: Thu, 28 Feb 2019 21:36:08 -0500 ······ Events: FirstSeen LastSeen Count From SubObjectPath Type Reason Message --------- -------- ----- ---- ------------- -------- ------ ------- 47s 47s 1 {default-scheduler } Normal Scheduled Successfully assigned mysql-vmm72 to 127.0.0

kubernetes notes

戏子无情 提交于 2019-11-26 15:46:54
Error from server (ServerTimeout): error when creating "mysql.yaml": No API token found for service account "default", retry after the token is automatically created and added to the service account # kubectl create -f mysql.yaml 此时有如下报错: Error from server (ServerTimeout): error when creating "mysql.yaml": No API token found for service account "default", retry after the token is automatically created and added to the service account 解决办法是编辑/etc/kubernetes/apiserver 去除 KUBE_ADMISSION_CONTROL中的SecurityContextDeny,ServiceAccount,并重启kube-apiserver.service服务: #vim /etc/kubernetes/apiserver KUBE

On linux SUSE or RedHat, how do I load Python 2.7

百般思念 提交于 2019-11-26 15:13:17
问题 Can someone provide the steps needed to install python version 2.7 on SUSE and RedHat? It version that is on there is like 2.4 and I need to have it at at least 2.6 to make my script work. So after the install, I can type Python in a xTerm and get the Python 2.7 command line interface. 回答1: Instructions to download source and install: https://www.python.org/download/ NOTE: You should check for the latest version of python 2.7.x, as it gets updated frequently. Currently (Oct 2017), the latest

RHEL8教学环境安装到VMware Workstation上的虚拟机

不打扰是莪最后的温柔 提交于 2019-11-26 10:20:24
安装Red Hat Enterprise Linux 8教学环境时,学员们都需要将这个环境安装到虚拟机中,以便在自己的笔记本电脑上练习使用。一般推荐使用VMware Workstation来托管整个教学环境。 准备: 1)移动硬盘 2)16G以上的USB盘 3)RHEL8教学环境软件 第1步:校验教学环境软件是否完整 # yum install -y http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/python3-pyyaml-3.12-12.el8.i686.rpm # ./rht-usb-8.x-7.r2019052915git14db55b verify RHCIfoundation-RHEL80-7.r2019052915-ILT-7-en_US.icmf Verifying manifest file RHCIfoundation-RHEL80-7.r2019052915-ILT-7-en_US.icmf Publish date: 2019-05-29 15:41:50 type md5sum artifact-name ----------- ------- ----------------------------------------------- content GOODSUM rhel-8

Suppressing the “Picked up _JAVA_OPTIONS” message [closed]

谁说胖子不能爱 提交于 2019-11-26 09:41:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I\'m using _JAVA_OPTIONS to set some defaults for Java on RHEL. It works fine but now every time I start java I get the following message Picked up _JAVA_OPTIONS: -foo -bar -baz is it possible to keep the options but suppress the display of this message. 回答1: From looking at the relevant source code (arguments

How to redirect output of systemd service to a file

孤者浪人 提交于 2019-11-26 07:53:19
问题 I am trying to redirect output of a systemd service to a file but it doesn\'t seem to work: [Unit] Description=customprocess After=network.target [Service] Type=forking ExecStart=/usr/local/bin/binary1 agent -config-dir /etc/sample.d/server StandardOutput=/var/log1.log StandardError=/var/log2.log Restart=always [Install] WantedBy=multi-user.target Please correct my approach. 回答1: I think there's a more elegant way to solve the problem: send the stdout/stderr to syslog with an identifier and

k8s:open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory解决

眉间皱痕 提交于 2019-11-25 22:48:55
方法一 yum安装 yum install *rhsm* 安装之后执行: docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latest 还是会报错,看方法二 方法二 执行命令: ① wget http://mirror.centos.org/centos/7/os/x86_64/Packages/python-rhsm-certificates-1.19.10-1.el7_4.x86_64.rpm ② rpm2cpio python-rhsm-certificates-1.19.10-1.el7_4.x86_64.rpm | cpio -iv --to-stdout ./etc/rhsm/ca/redhat-uep.pem | tee /etc/rhsm/ca/redhat-uep.pem 前两个命令会生成/etc/rhsm/ca/redhat-uep.pem文件. ③ docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latest 来源: oschina 链接: https://my.oschina.net/u/3852748/blog/3131722

对比ubuntu与centos系统 ​​​​

假装没事ソ 提交于 2019-11-25 22:36:04
CentOS 与Ubuntu该如何选择,哪个更好用。笔者在自媒体平台收集了一些网友的观点,较为经典,分享给大家。至于应该选择哪个,希望看完本文章后,读者心中有数。 观点1:CentOS适用于服务器,Ubuntu则适用于个人桌面 1.1 服务器 这一点是CentOS胜,虽然它们同样是开源,免费。CentOS它的源码是来自由商业服务器Red Hat Enterprise Linux 。有很多公司都是用CentOS来代替商业版的Red Hat Linux,同时它的稳定性也是值得信赖的。而Ubuntu的开发目的是为了使个人电脑变得简单易用,虽然也提供相应的企业服务器,不过专业的还是CentOS。 个人使用 没毛病,那就是Ubuntu,大多数人觉得Linux难,其中的原因之一就是难于安装,但Ubuntu提供了友好的安装界面,所以非常简单。同时它还有出名的社区,可以帮助你非常轻松的入门,甚至成为专家。同时它有很多支持的软件,这些软件基础可以让你在上面办公,玩耍。还有在2013年发布了面向智能手机的移动操作系统,在2014年与魅族合作推出Ubuntu版MX3。从这些可见它在单用户使用的强大,完美。虽然CentOS也有相应的友好安装功能和支持功能,不过总体上真没有Ubuntu完美。 总的来说,它们都是非常优秀的,都是免费的,开源的,有很多的开发者大神都一直在进行修改,完善