Kubernetes Secret is an object that contains a small amount of sensitive data such as a password, a token, or a key. Such information might otherwise be put in a Pod specification or in an image; putting it in a Secret object allows for more control over how it is used, and reduces the risk of accidental exposure.
The ConfigMap API resource provides mechanisms to inject containers with configuration data while keeping containers agnostic of Kubernetes. ConfigMap can be used to store fine-grained information like individual properties or coarse-grained information like entire config files or JSON blobs (https://unofficial-kubernetes.readthedocs.io/en/latest/tasks/configure-pod-container/configmap/).
Copy secrets between namespaces
$ kubectl get secret <secret-name>
--namespace=<source-namespace> --export -o yaml |\ kubectl apply
--namespace=<destination-namespace> -f -
Copy configmaps between namespaces
$ kubectl get configmap <configmap-name>
--namespace=<source-namespace> --export -o yaml |\ kubectl apply
--namespace=<destination-namespace> -f -
Copy secrets between kubernetes clusters
First log in to the source kubernetes cluster.
Then run below command to export required secret to a yaml
file,
$ kubectl get secret <secret-name> -n <source-namespace>
--export -o yaml > <secret-name>.yml
You can view the content of the file using below command,
$ cat <secret-name>.yml
Now you can easily deploy exported secret to another
kubernetes cluster,
$ kubectl apply --namespace=<destination-namespace> –f
<secret-name>.yml
Copy configmaps between kubernetes clusters
First log in to the source kubernetes cluster.
Then run below command to export required configmap to a
yaml file,
$ kubectl get configmap <configmap-name> -n
<source-namespace> --export -o yaml > <configmap-name>.yml
You can view the content of the file using below command,
$ cat <configmap-name>.yml
Now you can easily deploy exported configmap to another
kubernetes cluster,
$ kubectl apply --namespace=<destination-namespace> –f
<configmap-name>.yml
My programmer is trying to convince me to move to .net from PHP. I have always disliked the idea because of the expenses. But he's tryiong none the less. I've been using Movable-type on a number of websites for about a year and am nervous about switching to another platform. I have heard great things about blogengine.net. Is there a way I can transfer all my wordpress posts into it? Any kind of help would be greatly appreciated!
ReplyDeletemmorpg oyunlar
ReplyDeleteİnstagram takipci satin al
tiktok jeton hilesi
TİKTOK JETON HİLESİ
Antalya Saç Ekim
Instagram Takipci
İnstagram takipçi satın al
MT2 PVP SERVERLER
TAKİPÇİ
perde modelleri
ReplyDeletesms onay
VODAFONE MOBİL ÖDEME BOZDURMA
NFTNASİLALİNİR.COM
ankara evden eve nakliyat
trafik sigortası
dedektor
Websitesi Kurma
aşk kitapları
üsküdar vestel klima servisi
ReplyDeletebeykoz bosch klima servisi
üsküdar bosch klima servisi
beykoz arçelik klima servisi
üsküdar arçelik klima servisi
pendik samsung klima servisi
pendik mitsubishi klima servisi
tuzla vestel klima servisi
kadıköy bosch klima servisi
ds
ReplyDelete