|
How to get Kubernetes ConfigMap details
Author: Venkata Sudhakar
The below example shows how to get Kubernetes ConfigMap details.
01 | $ kubectl get configmaps example-configmap |
03 | example-configmap 4 2m52s |
05 | $ kubectl get configmaps example-configmap -o yaml |
08 | connection.url: jdbc:mysql: |
10 | keys: "aws.access.key=AAAAAAAAAA \naws.secret.key=BBBBBBBBBB\n" |
15 | kubectl.kubernetes.io/last-applied-configuration: | |
16 | { "apiVersion" : "v1" , "data" :{ "connection.url" : "jdbc:mysql://localhost:3306/bethecoder" , "database" : "mysql" , "keys" : "aws.access.key=AAAAAAAAAA \naws.secret.key=BBBBBBBBBB\n" , "username" : "abcd" }, "kind" : "ConfigMap" , "metadata" :{ "annotations" :{}, "name" : "example-configmap" , "namespace" : "default" }} |
17 | creationTimestamp: "2021-03-06T20:46:54Z" |
18 | name: example-configmap |
20 | resourceVersion: "2378" |
21 | selfLink: /api/v1/namespaces/ default /configmaps/example-configmap |
22 | uid: c354a51b-b4ca-4d3c-83b7-a62bdecb99b8 |
|
|