--- title: "Manage Secret using kubectl" slug: "ai-mlxp-pkubectlsecret" updated: 2026-09-17T09:37:44Z published: 2026-09-17T09:37:44Z canonical: "guide.ncloud-docs.com/ai-mlxp-pkubectlsecret" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://guide.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # Manage Secret using kubectl Available in VPC You can learn how to manage Secrets for using and managing access permissions to container images, Data Manager, or Model Registry. ML expert Platform manages Secrets through kubectl. ## Create Private Container Registry authentication Secret To use Private Container Registry images, you must register a Secret for authentication and specify it as the [imagePullSecrets](https://kubernetes.io/docs/concepts/configuration/secret/#using-imagepullsecrets) field value of the Pod you want to create. You can create a Secret to access Private Container Registry as follows: ``` kubectl -n create secret docker-registry ro_foobar \ --docker-server='foobar.kr.ncr.ntruss.com' \ # Container Registry base address --docker-username='ro_foobar' \ # User name --docker-password='pw_foobar' # Password ``` ``` apiVersion: batch/v1 kind: Job metadata: name: foobar namespace: p-{projectName} spec: template: spec: imagePullSecrets: - name: ro_foobar # Specify a Secret to be used in imagePullSecret containers: - name: main image: foobar.kr.ncr.ntruss.com/foobar:latest imagePullPolicy: Always ```