Skip to content

Commit

Permalink
Update iac.environmaen.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
den-vasyliev authored Jun 27, 2024
1 parent 25857ea commit 00f44e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iac.environmaen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ k create secret generic sops-age \
--from-file=age.agekey=/dev/stdin

## Export the public key
AGE_PUB_KEY=age1luqthsd4r5wc09l989s5yuudcrxfkrd9fka502vqvylk3xa29e9qkre4n3
AGE_PUB_KEY=age1lxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


# Create a Kubernetes secret for GCP authentication
## Create service account
## Create a service account key
## Create a Kubernetes secret for the service account key

k create secret -n flux-system generic k8s-k3s-secret --from-file=credentials=../../k8s-k3s-2cbd0214240e.json -o yaml --dry-run=client>k8s-k3s-secret.yaml
k create secret -n flux-system generic k8s-k3s-secret --from-file=credentials=../../GCP_PROJECT.json -o yaml --dry-run=client>gcp-auth-secret.yaml

## Encrypt the secret using SOPS and the age key
sops --age=$AGE_PUB_KEY --encrypt --encrypted-regex '^(data|stringData)$' --in-place gcp-auth-secret.yaml
Expand Down

0 comments on commit 00f44e6

Please sign in to comment.