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