반응형
ConfigMap general file volume mount
kubectl create configmap test-file --from-file test.tar -n test
apiVersion: v1
kind: Pod
metadata:
name: test
namespace: test
spec:
containers:
- image: ...
name: ...
volumeMounts:
- mountPath: /usr/share/test.tar
subPath: test.tar
name: filetest
volumes:
- name: filetest
configMap:
name: test-file
반응형
'Develop > k8s' 카테고리의 다른 글
kubernetes dashboard kong proxy disabled 후 ingress로 접속 (0) | 2025.03.11 |
---|---|
k8s Audit Policy (k8s 감사 정책) (0) | 2024.12.21 |
k8s ServiceAccount Token Refresh (0) | 2024.12.17 |
인증서 방식 계정 생성 (Certificates and Certificate Signing Requests) (0) | 2024.11.29 |
Containerd x509: certificate signed by unknown authority 설정 (0) | 2024.11.19 |