Difference between revisions of "Kubectl get configmap"

From wikieduonline
Jump to navigation Jump to search
 
(13 intermediate revisions by 4 users not shown)
Line 2: Line 2:
  
 
  [[kubectl get]] [[configmap]]
 
  [[kubectl get]] [[configmap]]
 +
[[kubectl get configmap -A]]
 +
kubectl get configmap -n [[kube-system]]
 +
 +
kubectl get configmap -n prod
 +
NAME                          DATA  AGE
 +
elasticsearch-master-config  1      5d22h
 +
kube-root-ca.crt              1      14d
 +
your-app                      1      21h
  
  
Line 8: Line 16:
 
  [[aws-auth]]  2      19h
 
  [[aws-auth]]  2      19h
  
  [[kubectl -n kube-system get configmap]] [[aws-auth]] -o=[[yaml]]
+
  [[kubectl -n kube-system get configmap aws-auth -o=yaml]]
 +
[[kubectl get]] configmap argocd-cm -n argocd -o yaml > argocd-cm.yml
 
   
 
   
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 ==
 
== Related ==
[[kubectl get configmaps]]
+
* [[kubectl get configmaps]]
  
 
== See also ==
 
== See also ==
* {{kubectl}}
+
* {{kubectl get}}
 +
* {{ConfigMap}}
  
 
[[Category:K8s]]
 
[[Category:K8s]]

Latest revision as of 21:00, 7 February 2024

kubectl get configmap
kubectl get configmap -A
kubectl get configmap -n kube-system
kubectl get configmap -n prod
NAME                          DATA   AGE
elasticsearch-master-config   1      5d22h
kube-root-ca.crt              1      14d
your-app                      1      21h


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
kubectl get configmap argocd-cm -n argocd -o yaml > argocd-cm.yml

Related[edit]

See also[edit]

Advertising: