1
0
Fork 0
mirror of https://github.com/external-secrets/external-secrets.git synced 2024-12-15 17:51:01 +00:00
external-secrets/docs/snippets/gcpsm-ssh-auth-externalsecret.yaml
2021-07-14 22:10:33 +02:00

23 lines
495 B
YAML

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