Skip to content

Commit

Permalink
chore: change CM secrets to external secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
jnobrega committed Apr 29, 2024
1 parent 17ddb4a commit f957980
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 29 deletions.
28 changes: 0 additions & 28 deletions k8s/apps/cert-manager/cert-manager/issuers/cloudflare-secret.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ kind: Kustomization
resources:
- lets-encrypt-staging.yaml
- lets-encrypt-production.yaml
- cloudflare-secret.yaml
- cloudflare-secret.yaml
- secret.yaml
20 changes: 20 additions & 0 deletions k8s/apps/cert-manager/cert-manager/issuers/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: cloudflare-api-token-secret
namespace: network
spec:
refreshInterval: 5m

secretStoreRef:
kind: ClusterSecretStore
name: akeyless-secret-store

target:
name: cloudflare-api-token-secret
creationPolicy: Owner

data:
- secretKey: api-token
remoteRef:
key: /cert-manager/apiKey

0 comments on commit f957980

Please sign in to comment.