20 lines
347 B
Markdown
20 lines
347 B
Markdown
# 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
|
|
```
|