kubectl secret



  • kubectl秘密の作成例
    kubectl create secret docker-registry \
    private-reg-cred \
    --docker-username=dock_user \
    --docker-password=dock_password \
    --docker-server=myprivateregistry.com:5000 \
    --docker-email=[email protected]

  • 秘密を使用したシードの作成
        apiVersion: v1
        kind: Pod
        metadata:
          name: private-reg
        spec:
          containers:
          - name: private-reg-container
            image: <your-private-image>
          imagePullSecrets:
          - name: regcred