Created
March 31, 2017 03:05
-
-
Save sharepointoscar/b5481ed78882187d68cd81a58e9b87c5 to your computer and use it in GitHub Desktop.
Add Docker Hub Registry to default service account in Kubernetes/MiniKube
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The yaml file | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
creationTimestamp: 2017-03-30T04:36:20Z | |
name: default | |
namespace: default | |
selfLink: /api/v1/namespaces/default/serviceaccounts/default | |
uid: 6bd2e599-1502-11e7-9a0e-080027e762a7 | |
secrets: | |
- name: default-token-r5jv1 | |
imagePullSecrets: | |
#this is the name of my custom registry entry previously created | |
- name: dockerhubregistry | |
#change the default account info with new settings from the file | |
kubectl replace serviceaccount default -f ./sa.yaml | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment