Home
|
Tutorials
|
Articles
|
Videos
|
Products
|
Tools
|
Search
Interviews
|
Open Source
|
Tag Cloud
|
Follow Us
|
Bookmark
|
Contact
In Browser
StumbleUpon
del.icio.us
Google
Google Buzz
reddit
LinkedIn
Facebook
Twitter
Linkedin
E-Mail
Home
Tutorials
Articles
Search Tutorials
Products
Authors
Submit a Tutorial
Report a Bug
Interview FAQ
Subscribe
Container Management
>
Kubernetes
> How to delete Kubernetes ConfigMap
How to delete Kubernetes ConfigMap
Author:
Venkata Sudhakar
The below example shows how to delete a
Kubernetes ConfigMap
.
$ kubectl get configmaps example-configmap -o yaml 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: kubectl.kubernetes.io/last-applied-configuration: | {"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"}} creationTimestamp: "2021-03-06T20:46:54Z" name: example-configmap namespace: default resourceVersion: "2378" selfLink: /api/v1/namespaces/default/configmaps/example-configmap uid: c354a51b-b4ca-4d3c-83b7-a62bdecb99b8 $ kubectl get configmaps example-configmap NAME DATA AGE example-configmap 4 7m18s $ kubectl delete configmap example-configmap configmap "example-configmap" deleted $ kubectl get configmaps example-configmap Error from server (NotFound): configmaps "example-configmap" not found
Home
|
Tutorials
|
Random Tutorial
|
Articles
|
Videos
|
Search
|
Google Search
|
Products
|
Student Projects
|
Open Source
Tools
|
Tips And Tricks
|
How to Fix
|
Tag Cloud
|
Share
|
Disclaimer
|
Privacy
|
Contact
|
Login
Send your comments, suggestions or queries regarding this site to
[email protected]
.
Copyright © 2008-2024. All rights reserved.