kubectl secret

1093 단어 kuberneteskubernetes
  1. kubectl secret 생성 예

    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]
  2. 시크릿을 사용하는 파드 생성하기

        apiVersion: v1
        kind: Pod
        metadata:
          name: private-reg
        spec:
          containers:
          - name: private-reg-container
            image: <your-private-image>
          imagePullSecrets:
          - name: regcred

좋은 웹페이지 즐겨찾기