SHARE
TWEET

Untitled

a guest Oct 4th, 2017 380 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. **apiVersion: v1
  2. kind: Pod
  3. metadata:
  4.   name: myapis
  5. spec:
  6.   containers:
  7.     - name: myapis
  8.       image: ciqsample.azurecr.io/myapis
  9.   imagePullSecrets:
  10.     - name: samplekey**
  11.    
  12. root@k8s-master-BBF71727-0:~# kubectl get secret
  13. NAME                  TYPE                                  DATA      AGE
  14. azurecr               kubernetes.io/dockercfg               1         57m
  15. default-token-clm2d   kubernetes.io/service-account-token   3         2h
  16.    
  17. root@k8s-master-BBF71727-0:~# kubectl get secret azurecr --output=yaml
  18.    
  19. kubectl create secret docker-register yoursecretname --docker-server=jason.azurecr.io/xxxx/test --docker-username={UserName} --docker-password={Password} --docker-email=team@domain.com
  20.    
  21. docker pull myregistry.azurecr.io/samples/nginx
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