Difference between revisions of "Kubectl get configmap"
Jump to navigation
Jump to search
Line 10: | Line 10: | ||
[[kubectl -n kube-system get configmap]] [[aws-auth]] -o=[[yaml]] | [[kubectl -n kube-system get configmap]] [[aws-auth]] -o=[[yaml]] | ||
+ | apiVersion: v1 | ||
+ | data: | ||
+ | [[mapRoles]]: | | ||
+ | - groups: | ||
+ | - system:[[bootstrappers]] | ||
+ | - system:nodes | ||
+ | rolearn: arn:aws:iam::0987654321:role/YourRole-NodeInstanceRole | ||
+ | username: system:node:{{EC2PrivateDNSName}} | ||
+ | mapUsers: | | ||
+ | - groups: | ||
+ | - system:[[masters]] | ||
+ | userarn: arn:aws:iam::0987654321:user/your_user2 | ||
+ | kind: [[ConfigMap]] | ||
+ | metadata: | ||
+ | creationTimestamp: "2022-06-22T14:38:40Z" | ||
+ | name: [[aws-auth]] | ||
+ | namespace: [[kube-system]] | ||
+ | resourceVersion: "190663" | ||
+ | [[uid:]] ffcee67e-e22c-4ac3-be81-7037bb3bde32 | ||
− | + | == Related == | |
[[kubectl get configmaps]] | [[kubectl get configmaps]] | ||
Revision as of 10:12, 23 June 2022
kubectl get configmap
kubectl -n kube-system get configmap aws-auth NAME DATA AGE aws-auth 2 19h
kubectl -n kube-system get configmap aws-auth -o=yaml
apiVersion: v1 data: mapRoles: | - groups: - system:bootstrappers - system:nodes rolearn: arn:aws:iam::0987654321:role/YourRole-NodeInstanceRole username: system:node:Template:EC2PrivateDNSName mapUsers: | - groups: - system:masters userarn: arn:aws:iam::0987654321:user/your_user2 kind: ConfigMap metadata: creationTimestamp: "2022-06-22T14:38:40Z" name: aws-auth namespace: kube-system resourceVersion: "190663" uid: ffcee67e-e22c-4ac3-be81-7037bb3bde32
Related
kubectl get configmaps
See also
kubectl
: [cp | config | create
|delete
|edit | explain |
apply
|exec
|get
|set
|drain | uncordon | rolling-update
|rollout
|logs
|run
|auth
|label | annotate
|version
|top
|diff
|debug
|replace
|describe
|port-forward | proxy
|scale
|rollout
|api-resources
| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io
Advertising: