Guest User

Untitled

a guest
Jan 9th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. 1) Built my customer image using docker
  2. 2) kubectl run myapp --image=myapp --port=80 --image-pull-policy=IfNotPresent
  3. 3) kubectl expose deployment myapp --type=LoadBalancer --port=80 --target-port=80 --name=myapp
  4.  
  5. docker login
  6. kubectl create secret docker-registry regcred --docker-server=https://index.docker.io/v1/ --docker-username=xxx --docker-password=xxx --docker-email=xxx
  7.  
  8. xxx@cloudshell:~ (involuted-ratio-227118)$ kubectl describe pod myapp-7cf96cf48-vsqb5
  9. Name: myapp-7cf96cf48-vsqb5
  10. Namespace: default
  11. Node: gke-standard-cluster-1-default-pool-c7d671ed-br8j/10.142.0.3
  12. Start Time: Wed, 09 Jan 2019 22:28:58 +0530
  13. Labels: pod-template-hash=379527904
  14. run=myapp
  15. Annotations: kubernetes.io/limit-ranger=LimitRanger plugin set: cpu request for container myapp
  16. Status: Pending
  17. IP: 10.48.8.9
  18. Controlled By: ReplicaSet/myapp-7cf96cf48
  19. Containers:
  20. myapp:
  21. Container ID:
  22. Image: mynginx
  23. Image ID:
  24. Port: 80/TCP
  25. Host Port: 0/TCP
  26. State: Waiting
  27. Reason: ImagePullBackOff
  28. Ready: False
  29. Restart Count: 0
  30. Requests:
  31. cpu: 100m
  32. Environment: <none>
  33. Mounts:
  34. /var/run/secrets/kubernetes.io/serviceaccount from default-token-8p622 (ro)
  35. Conditions:
  36. Type Status
  37. Initialized True
  38. Ready False
  39. PodScheduled True
  40. Volumes:
  41. default-token-8p622:
  42. Type: Secret (a volume populated by a Secret)
  43. SecretName: default-token-8p622
  44. Optional: false
  45. QoS Class: Burstable
  46. Node-Selectors: <none>
  47. Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s
  48. node.kubernetes.io/unreachable:NoExecute for 300s
  49. Events:
  50. Type Reason Age From Message
  51. ---- ------ ---- ---- -------
  52. Normal Scheduled 4m default-scheduler Successfully assigned myapp-7cf96cf48-vsqb5 to gke-standard-cluster-1-default-pool-c7d671ed-br8j
  53. Normal SuccessfulMountVolume 4m kubelet, gke-standard-cluster-1-default-pool-c7d671ed-br8j MountVolume.SetUp succeeded for volume "default-token-8p622"
  54. Normal Pulling 2m (x4 over 4m) kubelet, gke-standard-cluster-1-default-pool-c7d671ed-br8j pulling image "mynginx"
  55. Warning Failed 2m (x4 over 4m) kubelet, gke-standard-cluster-1-default-pool-c7d671ed-br8j Failed to pull image "mynginx": rpc error: code = Unknown desc = Error response from daemon: repository mynginx not found: does not exist or no pull access
  56. Warning Failed 2m (x4 over 4m) kubelet, gke-standard-cluster-1-default-pool-c7d671ed-br8j Error: ErrImagePull
  57. Normal BackOff 2m (x6 over 4m) kubelet, gke-standard-cluster-1-default-pool-c7d671ed-br8j Back-off pulling image "mynginx"
  58. Warning Failed 2m (x6 over 4m) kubelet, gke-standard-cluster-1-default-pool-c7d671ed-br8j Error: ImagePullBackOff
Add Comment
Please, Sign In to add comment