quorate/vendor/platform/smartctl-exporter/vso.yaml

43 lines
1,011 B
YAML

apiVersion: v1
kind: ServiceAccount
metadata:
name: smartctl-vso
namespace: smartctl-exporter
---
apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultAuth
metadata:
name: default
namespace: smartctl-exporter
spec:
method: kubernetes
mount: kubernetes
kubernetes:
role: smartctl
serviceAccount: smartctl-vso
vaultConnectionRef: vault/vault
---
apiVersion: secrets.hashicorp.com/v1beta1
kind: VaultStaticSecret
metadata:
name: quay-cluster-pull
namespace: smartctl-exporter
spec:
type: kv-v2
mount: secret
path: quay/robots/cluster_pull
destination:
name: quay-cluster-pull
create: true
overwrite: true
type: kubernetes.io/dockerconfigjson
transformation:
excludeRaw: true
excludes:
- .*
templates:
.dockerconfigjson:
text: >-
{"auths":{"registry.quorate.internal":{"auth":"{{ printf "%s:%s" (get .Secrets "username") (get .Secrets "token") | b64enc }}"}}}
refreshAfter: 1h
vaultAuthRef: default