1
0
Fork 0

Add pulumi

Signed-off-by: Arnaud M. <arnaud.choupinette@mailops.fr>
This commit is contained in:
Arnaud M. 2026-01-20 12:32:46 +01:00
parent cea9007bb3
commit 204eb9b519
5 changed files with 34 additions and 0 deletions

1
terraform/training/105/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.py

View File

@ -0,0 +1,20 @@
# Install
Taken from https://www.pulumi.com/docs/iac/get-started/kubernetes/
```
curl -fsSL https://get.pulumi.com | sh
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
pulumi login --local
pulumi new kubernetes-python -g
pulumi install
pulumi stack init
# Edit __main__.py
```
# Run
```bash
pulumi up
pulumi down
```

Binary file not shown.

View File

@ -0,0 +1,6 @@
#!/bin/bash
ls -1 *.py | 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

View File

@ -0,0 +1,7 @@
#!/bin/bash
ls -1 *.gpg | while read f ; do
echo "Unciphering $f"
n=${f%.gpg}
cat $f | gpg -d > $n
done