sansae@sansaeAir15m2 k8s-lab-workspace % k apply -f secret.yaml
secret/mysecret created
sansae@sansaeAir15m2 k8s-lab-workspace % k get secret
NAME TYPE DATA AGE
azure-storage-account-f56171ac8d40e462f9098ef-secret Opaque 2 24h
mysecret Opaque 2 6s
sansae@sansaeAir15m2 k8s-lab-workspace % k apply -f secret-pod.yaml
pod/secret-test-pod created
sansae@sansaeAir15m2 k8s-lab-workspace % k get pod
NAME READY STATUS RESTARTS AGE
secret-test-pod 0/1 Completed 0 4s
sansae@sansaeAir15m2 k8s-lab-workspace % k logs secret-test-pod
KUBERNETES_PORT=tcp://10.0.0.1:443
KUBERNETES_SERVICE_PORT=443
HOSTNAME=secret-test-pod
SHLVL=1
HOME=/root
KUBERNETES_PORT_443_TCP_ADDR=10.0.0.1
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
KUBERNETES_PORT_443_TCP_PORT=443
KUBERNETES_PORT_443_TCP_PROTO=tcp
KUBERNETES_PORT_443_TCP=tcp://10.0.0.1:443
KUBERNETES_SERVICE_PORT_HTTPS=443
PWD=/
KUBERNETES_SERVICE_HOST=10.0.0.1
USER_NAME=admin
PASSWORD=1f2d1e2e67df
No labels
0 Comments
You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.
0 Comments