new file: docs/fluxcd.md
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# fluxcd
|
||||
|
||||
## age / sops
|
||||
|
||||
**Create key and Import:**
|
||||
|
||||
``` bash
|
||||
NAMESPACE=ns-name
|
||||
AGE_FILE=deploy/flux/.env.d/age.agekey
|
||||
SECRET_NAME=flux-sops-age
|
||||
|
||||
# creates age key
|
||||
age-keygen -o ${AGE_FILE}
|
||||
# imports to an namespace
|
||||
cat ${AGE_FILE} |
|
||||
kubectl create secret generic ${SECRET_NAME} \
|
||||
--namespace=${NAMESPACE} \
|
||||
--from-file=age.agekey=/dev/stdin
|
||||
```
|
||||
Reference in New Issue
Block a user