REPOSITORY TAG IMAGE ID CREATED SIZE k8s.gcr.io/kube-proxy v1.15.3 232b5c793146 33 hours ago 82.4MB k8s.gcr.io/pause 3.1 da86e6ba6ca1 20 months ago 742kB [root@node1 ~]# [root@node2 ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE k8s.gcr.io/kube-proxy v1.15.3 232b5c7...
Configuration File for keepalived global_defs { router_id LVS_DEVEL } vrrp_script chk_apiserver { script "/etc/keepalived/check_apiserver.sh" interval 5 weight -5 fall 2 rise 1 } vrrp_instance VI_1 { state MASTER interface ens33 mcast_src_ip 192.168.1.31 virtual_router_id 51 priority 101...
1 微服务落地k8s碰到的问题 1.1 elasticsearch 无法参加索引 在用log-pilot采集日志时,在部署项目的yml文件中写的是大写字母(petApi),然后在elasticsearch中无法创建索引,把yml配置的索引名改成小写后重新apply -f 配置文件就好了 [root@
# 对于非root用户,可以这样操作 mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config # 如果是root用户,可以直接导入环境变量 export KUBECONFIG=/etc/kubernetes/admin.conf # 添加kubectl的自动补全功能 echo...
mkdir -p $HOME/.kube sudo cp /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config 1. 2. 3. 设置kubectl的补全脚本 kubectl completion bash > /etc/bash_completion.d/kubectl source /etc/bash_completion.d/kubectl 1. 2. 所有master配置etcdct...
docker rmi $DOCKERHUB_URL/$imageName done#赋予执行权限chmod +x ./pull_k8s_images.sh#执行脚本./pull_k8s_images.sh#查看下载结果[root@k8s-master01-225 ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE k8s.gcr.io/kube-proxy v1.18.6 c3d62d6fe412 2 weeks ago 117MB ...
labels: app: mynginx spec: containers: - name: mycontainer image: lizhaoqwe/nginx:v1 imagePullPolicy: IfNotPresent ports: - containerPort: 80 2、一般情况很少单独使用RS,而是结合更高层的资源Deployment使用,从而形成一整套Pod的删除,创建,更新,编排机制。当使用Deployment时,无需关心她是如何创建和维护...
image: tomcat:7.0.109-jdk8-openjdk imagePullPolicy: Always ports: - containerPort: 8080 protocol: TCP name: http --- kind: Service apiVersion: v1 metadata: labels: app: app-tomcat-service-label name: app-tomcat-service namespace: app ...
Loaded image: k8s.gcr.io/kube-controller-manager:v1.20.1 Loaded image: k8s.gcr.io/pause:3.2 Loaded image: k8s.gcr.io/kube-proxy:v1.20.1 Loaded image: k8s.gcr.io/kube-scheduler:v1.20.1 [root@knode1 ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE ...
["kube-dns"] topologyKey: kubernetes.io/hostname containers: - name: coredns image: coredns/coredns:1.8.0 imagePullPolicy: IfNotPresent resources: limits: memory: 170Mi requests: cpu: 100m memory: 70Mi args: [ "-conf", "/etc/coredns/Corefile" ] volumeMounts: - name: config-volume ...