gitlab-external-secret-json.yaml 550 B

12345678910111213141516171819
  1. apiVersion: external-secrets.io/v1
  2. kind: ExternalSecret
  3. metadata:
  4. name: gitlab-external-secret-example
  5. spec:
  6. refreshInterval: 1h0m0s
  7. secretStoreRef:
  8. kind: SecretStore
  9. name: gitlab-secret-store # Must match SecretStore on the cluster
  10. target:
  11. name: gitlab-secret-to-create # Name for the secret to be created on the cluster
  12. creationPolicy: Owner
  13. # each secret name in the KV will be used as the secret key in the SECRET k8s target object
  14. dataFrom:
  15. - extract:
  16. key: "myJsonVariable" # Key of the variable on Gitlab