-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added external secrets configuration and docs.
- Loading branch information
Showing
7 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,4 @@ gradle-app.setting | |
.vscode/ | ||
.DS_Store | ||
target/ | ||
airbyte.json | ||
*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: gcp-sa-credentials | ||
namespace: default | ||
spec: | ||
refreshInterval: 1h # rate SecretManager pulls GCPSM | ||
secretStoreRef: | ||
kind: ClusterSecretStore | ||
name: gcp-secret-manager-store # name of the SecretStore (or kind specified) | ||
namespace: external-secrets | ||
target: | ||
name: gcp-sa-credentials # name of the k8s Secret to be created | ||
creationPolicy: Owner | ||
data: | ||
- secretKey: external-secrets-sa.json | ||
remoteRef: | ||
key: external-secrets-sa # name of the GCPSM secret key |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: external-secrets-sa | ||
namespace: external-secrets | ||
annotations: | ||
iam.gke.io/gcp-service-account: external-secrets-sa@cloud-native-experience-lab.iam.gserviceaccount.com |
18 changes: 18 additions & 0 deletions
18
infrastructure/platform/external-secrets/secret-store.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ClusterSecretStore | ||
metadata: | ||
name: gcp-secret-manager-store | ||
namespace: external-secrets | ||
spec: | ||
provider: | ||
gcpsm: | ||
projectID: cloud-native-experience-lab | ||
auth: | ||
workloadIdentity: | ||
clusterLocation: europe-west4 | ||
clusterName: k8s-native-java-ai | ||
# projectID of the cluster (if omitted defaults to spec.provider.gcpsm.projectID) | ||
# clusterProjectID: cloud-native-experience-lab | ||
serviceAccountRef: | ||
name: external-secrets-sa | ||
namespace: external-secrets |