Skip to content

Commit

Permalink
chore(deploy): add cert for full tls
Browse files Browse the repository at this point in the history
  • Loading branch information
incubator4 committed Jan 3, 2024
1 parent 1356441 commit 7a7473f
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 47 deletions.
14 changes: 14 additions & 0 deletions deploy/base/cert.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: xchar
namespace: crossbell
annotations:
avp.kubernetes.io/path: "kv/data/crossbell/xchar"
spec:
dnsNames:
- "<DOMAIN>"
issuerRef:
kind: ClusterIssuer
name: cloudflare
secretName: xchar-cert
8 changes: 8 additions & 0 deletions deploy/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- svc.yaml
- route.yaml
- cert.yaml
- secret.yaml
2 changes: 2 additions & 0 deletions deploy/dev/route.yaml → deploy/base/route.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ spec:
services:
- name: xchar
port: 3000
tls:
secretName: xchar-cert
File renamed without changes.
File renamed without changes.
4 changes: 1 addition & 3 deletions deploy/dev/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../base
- deploy.yaml
- svc.yaml
- route.yaml
- secret.yaml
4 changes: 1 addition & 3 deletions deploy/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../base
- deploy.yaml
- svc.yaml
- route.yaml
- secret.yaml
- pvc.yaml
16 changes: 0 additions & 16 deletions deploy/prod/route.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions deploy/prod/secret.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions deploy/prod/svc.yaml

This file was deleted.

0 comments on commit 7a7473f

Please sign in to comment.