Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SO1S-363 terraform dev 환경 자동화 istio ingress 오류 #32

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions charts/istio/dev-values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
vender: "AWS" # AWS | on-premise

environment: "develop"

ingress:
enabled: false

istio-gateway:
tolerations:
- key: kind
Expand Down
16 changes: 16 additions & 0 deletions charts/istio/prod-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
vender: "AWS" # AWS | on-premise

environment: "production"

ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/target-type: instance
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/healthcheck-protocol: HTTPS
alb.ingress.kubernetes.io/healthcheck-port: "443"
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
alb.ingress.kubernetes.io/ssl-redirect: "443"
alb.ingress.kubernetes.io/certificate-arn: "arn:aws:acm:ap-northeast-2:089143290485:certificate/8f20bc85-876b-47a2-8c9f-27e9f5455ca9"
external-dns.alpha.kubernetes.io/hostname: "*.so1s.io"
16 changes: 6 additions & 10 deletions charts/istio/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
{{ if .Values.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: istio-ingress
namespace: istio-system
{{- if .Values.ingress.annotations }}
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/target-type: instance
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/healthcheck-protocol: HTTPS
alb.ingress.kubernetes.io/healthcheck-port: '443'
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS":443}]'
alb.ingress.kubernetes.io/ssl-redirect: '443'
alb.ingress.kubernetes.io/certificate-arn: "arn:aws:acm:ap-northeast-2:089143290485:certificate/8f20bc85-876b-47a2-8c9f-27e9f5455ca9"
external-dns.alpha.kubernetes.io/hostname: "*.so1s.io"
{{- toYaml .Values.ingress.annotations | nindent 4 }}
{{- end }}
spec:
defaultBackend:
service:
Expand All @@ -28,4 +23,5 @@ spec:
service:
name: istio-gateway
port:
number: 80
number: 80
{{ end -}}
8 changes: 8 additions & 0 deletions charts/istio/values.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
vender: "AWS" # AWS | on-premise

environment: "develop"

ingress:
enabled: false
annotations: {}

istio-gateway: {}
istiod: {}