| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- apiVersion: external-secrets.io/v1alpha1
- kind: PushSecret
- metadata:
- name: pushsecret-example # Customisable
- namespace: default # Same of the SecretStores
- spec:
- deletionPolicy: Delete # the provider' secret will be deleted if the PushSecret is deleted
- refreshInterval: 1h # Refresh interval for which push secret will reconcile
- secretStoreRefs: # A list of secret stores to push secrets to
- - name: aws-parameterstore
- kind: SecretStore
- selector:
- secret:
- name: pokedex-credentials # Source Kubernetes secret to be pushed
- data:
- - match:
- remoteRef:
- remoteKey: my-first-parameter # Remote reference (where the secret is going to be pushed)
- metadata:
- apiVersion: kubernetes.external-secrets.io/v1alpha1
- kind: PushSecretMetadata
- spec:
- description: "This is a secret for the API credentials"
- secretType: SecureString
- kmsKeyID: bb123123-b2b0-4f60-ac3a-44a13f0e6b6c
- tier:
- type: Advanced # default is Standard
- policies:
- - type: "Expiration"
- version: "1.0"
- attributes:
- timestamp: "2024-12-02T21:34:33.000Z"
- - type: "ExpirationNotification"
- version: "1.0"
- attributes:
- before: "2"
- unit: "Days"
- - type: "ExpirationNotification"
- version: "1.0"
- attributes:
- before: "30"
- unit: "Days"
- - type: "NoChangeNotification"
- version: "1.0"
- attributes:
- after: "30"
- unit: "Days"
- tags:
- environment: sandbox
- team: pokedex
- secret-store: aws-parameterstore
- refresh-interval: 1h
|