"K8s defaultMode"의 두 판 사이의 차이

3번째 줄: 3번째 줄:
;k8s 디폴트모드
;k8s 디폴트모드


<syntaxhighlight lang='yaml' highlight='17'>
<syntaxhighlight lang='yaml' line highlight='16'>
apiVersion: v1
apiVersion: v1
kind: Pod
kind: Pod
10번째 줄: 10번째 줄:
spec:
spec:
   containers:
   containers:
   - name: myapp
   - name: mypod
     image: ubuntu
     image: redis
     volumeMounts:
     volumeMounts:
     - name: secrets
     - name: foo
       mountPath: "/etc/secrets"
       mountPath: "/etc/foo"
      readOnly: true
   volumes:
   volumes:
   - name: secrets
   - name: foo
     secret:
     secret:
       secretName: mysecret
       secretName: mysecret
       defaultMode: 0400
       defaultMode: 0400
      items:
      - key: username
        path: my-username
</syntaxhighlight>
</syntaxhighlight>



2021년 10월 28일 (목) 11:23 판

1 개요

k8s defaultMode
k8s 디폴트모드
apiVersion: v1
kind: Pod
metadata:
  name: mypod
spec:
  containers:
  - name: mypod
    image: redis
    volumeMounts:
    - name: foo
      mountPath: "/etc/foo"
  volumes:
  - name: foo
    secret:
      secretName: mysecret
      defaultMode: 0400

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}