{% raw %} apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret metadata: name: dk-cfg-example spec: refreshInterval: 1h secretStoreRef: name: example kind: SecretStore target: template: type: kubernetes.io/dockerconfigjson data: .dockerconfigjson: "{{ .mysecret | toString }}" name: secret-to-be-created creationPolicy: Owner data: - secretKey: mysecret remoteRef: key: docker-config-example {% endraw %}