From dc3c47af8ed40f995ce51be5d0792f982c2ed858 Mon Sep 17 00:00:00 2001 From: Julius de Jeu Date: Mon, 23 May 2022 00:14:37 +0200 Subject: [PATCH] Add access to my registry --- .../base/flux-system/kustomization.yaml | 1 + .../base/flux-system/registry-creds.yaml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 flux/cluster/base/flux-system/registry-creds.yaml diff --git a/flux/cluster/base/flux-system/kustomization.yaml b/flux/cluster/base/flux-system/kustomization.yaml index 4f8d51b..e4aab69 100644 --- a/flux/cluster/base/flux-system/kustomization.yaml +++ b/flux/cluster/base/flux-system/kustomization.yaml @@ -5,3 +5,4 @@ resources: - gotk-sync.yaml - notifications.yaml - charts + - registry-creds.yaml \ No newline at end of file diff --git a/flux/cluster/base/flux-system/registry-creds.yaml b/flux/cluster/base/flux-system/registry-creds.yaml new file mode 100644 index 0000000..0e4a695 --- /dev/null +++ b/flux/cluster/base/flux-system/registry-creds.yaml @@ -0,0 +1,19 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: registry-creds + namespace: flux-system +spec: + refreshInterval: "5m" + secretStoreRef: + name: vault + kind: ClusterSecretStore + target: + name: registry-creds + template: + type: kubernetes.io/dockerconfigjson + data: + - secretKey: .dockerconfigjson + remoteRef: + key: registry-creds + property: dockerconfigjson \ No newline at end of file