SHARE
TWEET

Untitled

a guest Dec 23rd, 2017 332 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4.   name: ssh-deployment
  5. spec:
  6.   template:
  7.     metadata:
  8.       labels:
  9.         app: helloworld
  10.     spec:
  11.       containers:
  12.       - name: ssh-demo
  13.         image: makdom.ddns.net/my-ubuntu
  14.         imagePullPolicy: IfNotPresent
  15.         ports:
  16.         - name: nodejs-port
  17.           containerPort: 22
  18.       imagePullSecrets:
  19.       - name: myregistrykey
  20.    
  21. DOCKER_REGISTRY_SERVER="https://makdom.ddns.net/v1/"
  22. DOCKER_USER="user"
  23. DOCKER_PASSWORD="password"
  24. DOCKER_EMAIL="email@example.com"
  25.  
  26. kubectl create secret docker-registry myregistrykey
  27.   --docker-server=$DOCKER_REGISTRY_SERVER
  28.   --docker-username=$DOCKER_USER
  29.   --docker-password=$DOCKER_PASSWORD
  30.   --docker-email=$DOCKER_EMAIL
  31.    
  32. Events:
  33.   Type     Reason                 Age               From                  Message
  34.   ----     ------                 ----              ----                  -------
  35.   Normal   Scheduled              1m                default-scheduler     Successfully assigned ssh-deployment-7b7c7bf977-m6stk to kubes-slave
  36.   Normal   SuccessfulMountVolume  1m                kubelet, kubes-slave  MountVolume.SetUp succeeded for volume "default-token-mx7qq"
  37.   Normal   Pulled                 1m (x3 over 1m)   kubelet, kubes-slave  Container image "makdom.ddns.net/my-ubuntu" already present on machine
  38.   Normal   Created                1m (x3 over 1m)   kubelet, kubes-slave  Created container
  39.   Normal   Started                1m (x3 over 1m)   kubelet, kubes-slave  Started container
  40.   Normal   Pulling                34s (x2 over 1m)  kubelet, kubes-slave  pulling image "makdom.ddns.net/my-ubuntu"
  41.   Warning  Failed                 34s (x2 over 1m)  kubelet, kubes-slave  Failed to pull image "makdom.ddns.net/my-ubuntu": rpc error: code = Unknown desc = Error: image my-ubuntu:latest not found
  42.   Warning  Failed                 34s (x2 over 1m)  kubelet, kubes-slave  Error: ErrImagePull
  43.   Warning  BackOff                19s (x6 over 1m)  kubelet, kubes-slave  Back-off restarting failed container
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top