I run
docker pull ghcr.io/.../test-service
Everything works just fine, however, when I try to use it in a deployment and apply the deployment to a Minikube instance I get...
Warning Failed 14s (x4 over 93s) kubelet Error: ErrImagePull
Normal BackOff 1s (x6 over 92s) kubelet Back-off pulling image "ghcr.io/.../test-service:latest"
Warning Failed 1s (x6 over 92s) kubelet Error: ImagePullBackOff
How do I configure Minikube to use my Github PAT?
My deployment looks like this...
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-app
namespace: foo
spec:
replicas: 1
selector:
matchLabels:
app: test-app
version: v1
template:
metadata:
labels:
app: test-app
version: v1
spec:
serviceAccountName: test-app
containers:
- image: ghcr.io/.../test-service:latest
imagePullPolicy: Always
name: test-app
ports:
- containerPort: 8000
Another simpler way is to add registry-creds addon to Minikube
Then you can refer to the github container registry creds as
dpr-secret
as below deployment example shows