title | description | published | date | tags | editor | dateCreated |
---|---|---|---|---|---|---|
Kubernetes |
true |
2025-03-03 21:31:31 UTC |
markdown |
2024-12-04 09:19:29 UTC |
- recreate on GitHub
- backup local dockerconfig
docker login ghcr.io
-
kubectl create secret generic ghcr --dry-run=client \ --from-file=.dockerconfigjson=$HOME/.config/docker/config.json \ --type=kubernetes.io/dockerconfigjson -o yaml > ghcr-pull-secret.local.yml
- add
metadata:
annotations:
sealedsecrets.bitnami.com/cluster-wide: "true"
cat ghcr-pull-secret.local.yml | kubeseal -w ghcr-pull-secret.yml -o yaml
& cleanup resulting file- copy to all wanted places