Skip to content

Instantly share code, notes, and snippets.

@sharepointoscar
Created March 31, 2017 03:05
Show Gist options
  • Save sharepointoscar/b5481ed78882187d68cd81a58e9b87c5 to your computer and use it in GitHub Desktop.
Save sharepointoscar/b5481ed78882187d68cd81a58e9b87c5 to your computer and use it in GitHub Desktop.
Add Docker Hub Registry to default service account in Kubernetes/MiniKube
# 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