Difference between revisions of "Distribute Credentials Securely Using Secrets"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
- name: test-container | - name: test-container | ||
image: nginx | image: nginx | ||
− | volumeMounts: | + | [[volumeMounts:]] |
# name must match the volume name below | # name must match the volume name below | ||
- name: secret-volume | - name: secret-volume |
Latest revision as of 11:03, 15 October 2024
apiVersion: v1 kind: Pod metadata: name: secret-test-pod spec: containers: - name: test-container image: nginx volumeMounts: # name must match the volume name below - name: secret-volume mountPath: /etc/secret-volume readOnly: true # The secret data is exposed to Containers in the Pod through a Volume. volumes: - name: secret-volume secret: secretName: test-secret
See also[edit]
- Kubernetes secrets:
kubectl [ get | create | describe | delete | secret ] secrets
,secret.yml, kind: Secret, secretKeyRef, default-token, imagePullSecrets:, kubernetes.io/dockerconfigjson
Advertising: