NETWORKPOLICY 信息 Defaulted container "cilium-agent" out of: cilium-agent, mount-cgroup (init), apply-sysctl-overwrites (init), clean-cilium-state (init) POLICY DIRECTION LABELS (source:key[=value]) PORT/PROTO PROXY PORT BYTES PACKETS Allow Ingress reserved:unknown 9999/TCP NONE 0 0 Allow ...
Defaulted container "pod04" out of: pod04, pod05 root@pod01:/# yum bash: yum: command not found # 其实我们看提示信息就知道了。它默认进入的是pod04,也就是nginx # 那我我想进入pod05怎么办呢?我们可以加上-c参数 [root@master k8s]# kubectl exec -it pod01 -c pod05 -- /bin/bash [roo...
Defaulted container"calico-node"outof:calico-node,upgrade-ipam(init),install-cni(init),mount-bpffs(init)Error fromserver:error dialingbackend:dial tcp 10.51.10.6:10250:connect:no route to host 要到故障pod的主机登录pod image.png [root@rzbl-middleware03 ~]# kubectl exec-it calico-node-r42fc-...
Defaulted container "mysql" out of: mysql, xtrabackup, init-mysql (init), clone-mysql (init) root@mysql-2:/# mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 632 Server version: 5.7.36 MySQL Community Server (GPL) Copyright (c) 2000, 2021,...
Defaulted container "cilium-agent" out of: cilium-agent, mount-cgroup (init), apply-sysctl-overwrites (init), clean-cilium-state (init) POLICY DIRECTION LABELS (source:key[=value]) PORT/PROTO PROXY PORT BYTES PACKETS Allow Ingress reserved:unknown 9999/TCP NONE 0 0 ...
Defaulted container "nginx" out of: nginx, install (init) root@initnginx:/# ls bin boot dev docker-entrypoint.d docker-entrypoint.sh etc home lib lib64 media mnt opt proc root run sbin srv sys tmp usr var root@initnginx:/# cd usr/share/nginx/html/ ...
Defaulted container "kube-flannel" out of: kube-flannel, install-cni-plugin (init), install-cni (init) I1102 03:07:31.013498 1 main.go:212] CLI flags config: {etcdEndpoints:http://127.0.0.1:4001,http://127.0.0.1:2379 etcdPrefix:/coreos.com/network etcdKeyfile: etcdCertfile: etcdCAFil...
Defaulted container"envoy"out of: envoy, config-file-downloader (init) admin: access_log_path: /tmp/admin_access.log address: socket_address: { address: 0.0.0.0, port_value: 9901 } static_resources: listeners: - name: listener_0
[root@master k8s]# kubectl exec -it initpod02 -- cat /test/initfile Defaulted container "initpod02" out of: initpod02, initc (init) 123我们可以看见,业务容器下确实存在了initfile文件,并且内容就是我们ehco的123现在我们应该可以理解初始化容器是用来干什么的了,他可以在我们的业务容器启动之前执行...
Defaulted container "ubuntu" out of: ubuntu, k8tz (init) Wed Jun 15 07:13:42 BST 2023 pod "ubuntu" deleted 1. 2. 3. 4. 或者使用注解 k8tz.io/inject禁用时区注入 Pod : # kubectl run -i -t ubuntu --image=ubuntu:21.04 --restart=OnFailure --rm=true --command date --annotations k8...