幸运之星正在降临...
点击领取今天的签到奖励!
恭喜!您今天获得了{{mission.data.mission.credit}}积分
我的优惠劵
-
¥优惠劵使用时效:无法使用使用时效:
之前
使用时效:永久有效优惠劵ID:×
没有优惠劵可用!
少了 “>”
还有别的安装方式的文档吗?比如kubeadm
wget -P /opt/ http://down.i4t.com/k8s1.14/coredns.yaml 这个coredns.yaml 文件拉不下来
[root@k8s-01 opt]# kubectl exec -ti busybox -- nslookup kubernetes
Server: 10.254.0.2
Address 1: 10.254.0.2
nslookup: can't resolve 'kubernetes'
command terminated with exit code 1
请问这个怎么排查
http://down.i4t.com/k8s1.14/coredns.yaml
这个链接失效了啊
这个镜像是不是不能用
kubectl create -f nginx-ds.yml
[root@k8s-02 ~]# kubectl get pod -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
nginx-ds-9zf2x 0/1 ContainerCreating 0 18m k8s-02
nginx-ds-nz5r4 0/1 ContainerCreating 0 18m k8s-04
nginx-ds-pf6hm 0/1 ContainerCreating 0 18m k8s-01
nginx-ds-wnmm7 0/1 ContainerCreating 0 18m k8s-03
[root@k8s-02 ~]# kubectl describe pod nginx-ds-9zf2x
Name: nginx-ds-9zf2x
Namespace: default
Priority: 0
PriorityClassName:
Node: k8s-02/192.168.122.233
Start Time: Tue, 20 Aug 2019 10:08:41 +0800
Labels: app=nginx-ds
controller-revision-hash=7b59678655
pod-template-generation=1
Annotations:
Status: Pending
IP:
Controlled By: DaemonSet/nginx-ds
Containers:
my-nginx:
Container ID:
Image: daocloud.io/library/nginx:1.13.0-alpine
Image ID:
Port: 80/TCP
Host Port: 0/TCP
State: Waiting
Reason: ContainerCreating
Ready: False
Restart Count: 0
Environment:
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-wsmxp (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
default-token-wsmxp:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-wsmxp
Optional: false
QoS Class: BestEffort
Node-Selectors:
Tolerations: node.kubernetes.io/disk-pressure:NoSchedule
node.kubernetes.io/memory-pressure:NoSchedule
node.kubernetes.io/not-ready:NoExecute
node.kubernetes.io/pid-pressure:NoSchedule
node.kubernetes.io/unreachable:NoExecute
node.kubernetes.io/unschedulable:NoSchedule
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 19m default-scheduler Successfully assigned default/nginx-ds-9zf2x to k8s-02
Warning FailedCreatePodSandBox 4m7s (x67 over 19m) kubelet, k8s-02 Failed create pod sandbox: rpc error: code = Unknown desc = failed pulling image "registry.cn-beijing.aliyuncs.com/k8s_images/pause-amd64:3.1": Error response from daemon: pull access denied for registry.cn-beijing.aliyuncs.com/k8s_images/pause-amd64, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
好好好好好好好好好好好好好好好好好好好好好好好好