Add answer for kub
Signed-off-by: Arnaud M <arnaud.choupinette@mailops.fr>
This commit is contained in:
1
kubernetes/training/lessons/.gitignore
vendored
Normal file
1
kubernetes/training/lessons/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*.yml
|
||||||
@@ -14,7 +14,7 @@ kubectl get nodes
|
|||||||
```
|
```
|
||||||
```
|
```
|
||||||
NAME STATUS ROLES AGE VERSION
|
NAME STATUS ROLES AGE VERSION
|
||||||
ansible101 Ready control-plane,master 100s v1.22.5+k3s1
|
isen-x Ready control-plane,master 100s v1.22.5+k3s1
|
||||||
```
|
```
|
||||||
`k3s` will use your server as `control-plane` but also as `worker` (master)
|
`k3s` will use your server as `control-plane` but also as `worker` (master)
|
||||||
|
|
||||||
|
|||||||
6
kubernetes/training/lessons/cipher.sh
Executable file
6
kubernetes/training/lessons/cipher.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
find . -name '*.yml' | while read f ; do
|
||||||
|
echo "Ciiphering $f"
|
||||||
|
cat $f | gpg -e -r arnaud@mailops.fr -r arnaud.choupinette@mailops.fr -r arnaud.morin@gmail.com > $f.gpg
|
||||||
|
done
|
||||||
BIN
kubernetes/training/lessons/deployment.yml.gpg
Normal file
BIN
kubernetes/training/lessons/deployment.yml.gpg
Normal file
Binary file not shown.
7
kubernetes/training/lessons/uncipher.sh
Executable file
7
kubernetes/training/lessons/uncipher.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
find . -name '*.gpg' | while read f ; do
|
||||||
|
echo "Unciphering $f"
|
||||||
|
n=${f%.gpg}
|
||||||
|
cat $f | gpg -d > $n
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user