79088125

Date: 2024-10-15 01:26:40
Score: 0.5
Natty:
Report link

Did you create the secret correctly?

The Docker JSON config would be like:

{
  "auths": {
    "172.16.20.182": {
      "auth": "YWRtaW46c2luSDW=="
    }
  }
}

Which you need to encode in base64 and create a Kubernetes secret to use it from.

apiVersion: v1
kind: Secret
metadata:
  name: k8s-demo
  namespace: default
data:
  .dockerconfigjson: eyJhdXRocyI6eyIxNzIuMTYuMjAuMTgyIjp7ImF1dGgiOiJZV1J0YVc0NmMybHVTRFc9PSJ9fX0=
type: kubernetes.io/dockerconfigjson

That should pull the image correctly.

PS. Basic auth is just base64 encoded the user/pass is admin:sinH5

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (0.5):
Posted by: acrogenesis