update
This commit is contained in:
parent
1a3111d6ab
commit
b5943d7a39
@ -9,12 +9,8 @@ spec:
|
|||||||
server: {{ .Values.spec.destination.server }}
|
server: {{ .Values.spec.destination.server }}
|
||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
chart: cert-manager
|
path: cert-manager
|
||||||
repoURL: https://charts.jetstack.io
|
repoURL: {{ .Values.spec.source.repoURL }}
|
||||||
targetRevision: 1.*.*
|
targetRevision: {{ .Values.spec.source.targetRevision }}
|
||||||
helm:
|
|
||||||
valuesObject:
|
|
||||||
crds:
|
|
||||||
enabled: true
|
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated: {}
|
automated: {}
|
||||||
16
apps/templates/cluster-config.yaml
Normal file
16
apps/templates/cluster-config.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: cluster-config
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: default
|
||||||
|
server: {{ .Values.spec.destination.server }}
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
path: cluster-config
|
||||||
|
repoURL: {{ .Values.spec.source.repoURL }}
|
||||||
|
targetRevision: {{ .Values.spec.source.targetRevision }}
|
||||||
|
syncPolicy:
|
||||||
|
automated: {}
|
||||||
@ -8,3 +8,7 @@ configMapGenerator:
|
|||||||
behavior: merge
|
behavior: merge
|
||||||
files:
|
files:
|
||||||
- ssh_known_hosts
|
- ssh_known_hosts
|
||||||
|
- name: argocd-cm
|
||||||
|
behavior: merge
|
||||||
|
literals:
|
||||||
|
- kustomize.buildOptions=--enable-helm
|
||||||
7
cert-manager/cloudflare.yaml
Normal file
7
cert-manager/cloudflare.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: cloudflare-api-token-secret
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
api-token: 2HvBOy8LzwnvssuL4jZxOVlMtHoLP981FJRY2cQF
|
||||||
21
cert-manager/clusterissuer.yaml
Normal file
21
cert-manager/clusterissuer.yaml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: ClusterIssuer
|
||||||
|
metadata:
|
||||||
|
name: letsencrypt-prod
|
||||||
|
namespace: cert-manager
|
||||||
|
spec:
|
||||||
|
acme:
|
||||||
|
# The ACME server URL
|
||||||
|
server: https://acme-v02.api.letsencrypt.org/directory
|
||||||
|
# Email address used for ACME registration
|
||||||
|
email: leon.liuyang.d@gmail.com
|
||||||
|
# Name of a secret used to store the ACME account private key
|
||||||
|
privateKeySecretRef:
|
||||||
|
name: letsencrypt-prod
|
||||||
|
# Enable the HTTP-01 challenge provider
|
||||||
|
solvers:
|
||||||
|
- dns01:
|
||||||
|
cloudflare:
|
||||||
|
apiTokenSecretRef:
|
||||||
|
name: cloudflare-api-token-secret
|
||||||
|
key: api-token
|
||||||
12
cert-manager/kustomization.yaml
Normal file
12
cert-manager/kustomization.yaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
resources:
|
||||||
|
- cloudflare.yaml
|
||||||
|
- clusterissuer.yaml
|
||||||
|
|
||||||
|
helmCharts:
|
||||||
|
- name: cert-manager
|
||||||
|
repo: https://charts.jetstack.io
|
||||||
|
releaseName: cert-manager
|
||||||
|
namespace: cert-manager
|
||||||
|
valuesInline:
|
||||||
|
crds:
|
||||||
|
enabled: true
|
||||||
7
cluster-config/dockerconfig.yaml
Normal file
7
cluster-config/dockerconfig.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
.dockerconfigjson: eyJhdXRocyI6eyJnaGNyLmlvIjp7InVzZXJuYW1lIjoibGVvbmxpdXkiLCJwYXNzd29yZCI6ImdocF9GU0swVDhxRE1mYmZ0eFJhZ1VaVU1DWWZ0eFlLM2IxckcwTHAiLCJlbWFpbCI6Imxlb24ubGl1eWFuZy5kQGdtYWlsLmNvbSIsImF1dGgiOiJiR1Z2Ym14cGRYazZaMmh3WDBaVFN6QlVPSEZFVFdaaVpuUjRVbUZuVlZwVlRVTlpablI0V1VzellqRnlSekJNY0E9PSJ9fX0=
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: ghcr-auth
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
Loading…
Reference in New Issue
Block a user