This repo manages Kubernetes manifests and is used as a source-of-truth for all current deployments.
-
Log into your GKE console and follow intructions to connect to NodeScript cluster.
Secrets are managed using SOPS. Installing SOPS is required to edit the secrets locally.
-
Install SOPS:
brew install sops -
Log into GCloud:
gcloud auth login gcloud auth application-default login -
Edit any secret file with sops:
sops ./secrets/apps/<env>/<file>.yaml
See Secrets for more info.
-
Create an unencrypted k8s secret YAML file in
secrets/ac-production. -
Encrypt with sops (
-eencrypt,-iin-place):sops -e -i ./secrets/<group>/<env>/<file>.yaml -
Apply with
kubectl:sops -d ./secrets/<group>/<env>/<file>.yaml | kubectl apply -f - -
Commit your changes.
-
Edit the file with sops:
sops ./secrets/<group>/<env>/<file>.yaml -
Apply with
kubectl:sops -d ./secrets/<group>/<env>/<file>.yaml | kubectl apply -f - -
Commit your changes.