Skip to content

Commit

Permalink
⚡️ :: cert 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Aug 27, 2023
1 parent 9d69344 commit c58bb90
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/istio/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
type: application
name: istio
version: 1.0.1
version: 1.0.2
appVersion: "1.18.1"
description: Istio setting for xquare
29 changes: 29 additions & 0 deletions charts/istio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,35 @@ operator:
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: "443"
service.beta.kubernetes.io/aws-load-balancer-cross-zone-load-balancing-enabled: "true"

gateway:
- hosts:
- '*.xquare.app'
port:
name: https
number: 443
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: xquare-cert
- hosts:
- '*.dsm-pick.com'
port:
name: https
number: 443
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: pick-cert
- hosts:
- '*.dsm-repo.con'
port:
name: https
number: 443
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: repo-cert

virtualServices:
- name: argocd-server
host: argo-cd.xquare.app
Expand Down
15 changes: 9 additions & 6 deletions charts/xquare-certificate/templates/xquare-cert.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{{- range .Values.certificates }}
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: xquare-cert
name: {{ .name }}
namespace: istio-system
spec:
isCA: true
duration: 87600h # 10 years
secretName: xquare-cert
commonName: 'xquare.app'
secretName: {{ .name }}
commonName: {{ .commonName }}
privateKey:
algorithm: ECDSA
size: 256
Expand All @@ -16,9 +17,11 @@ spec:
- cluster.local
- cert-manager
dnsNames:
- '*.xquare.app'
- 'xquare.app'
{{- range .dnsNames }}
- {{ . }}
{{- end }}
issuerRef:
name: letsencrypt-issuer
kind: ClusterIssuer
secretName: xquare-cert
secretName: {{ .name }}
{{- end }}
16 changes: 16 additions & 0 deletions charts/xquare-certificate/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
certificates:
- name: xquare-cert
commonName: xquare.app
dnsNames:
- '*.xquare.app'
- 'xquare.app'
- name: pick-cert
commonName: dsm-pick.com
dnsNames:
- '*.dsm-pick.com'
- 'dsm-pick.com'
- name: repo-cert
commoNname: dsm-repo.com
dnsNames:
- '*.dsm-repo.com'
- 'dsm-repo.com'

0 comments on commit c58bb90

Please sign in to comment.