1) Configmap 환경변수

2) Secret 생성

3) Deployment envFrom.SecreRef 부분 업데이트

4) 결과
4-1 인코딩
kubectl get -n anotherclass-123 secret api-tester-1231-properties -o yaml

4-2 디코딩

1) DB 컨피그맵 생성
apiVersion: v1
kind: ConfigMap
metadata:
namespace: anotherclass-123
name: api-tester-1231-postgresql
labels:
part-of: k8s-anotherclass
component: backend-server
name: api-tester
instance: api-tester-1231
version: 1.0.0
managed-by: dashboard
data:
postgresql-info.yaml: |
driver-class-name: "org.postgresql.Driver"
url: "jdbc:postgresql://postgresql:5431"
username: "dev"
password: "dev123"
2) 디폴리먼트 volumeMounts, volumes 업데이트
컨테이너에서 어디에 저장할지.-> volumeMounts

무엇을 저장할지. -> volumes

3) 결과
kubectl describe -n anotherclass-123 configmaps api-tester-1231-postgresql
