Skip to content

Commit 6a85ad7

Browse files
committed
modifications to web service for ingress / ssl config
1 parent 979ebfb commit 6a85ad7

File tree

1 file changed

+6
-27
lines changed

1 file changed

+6
-27
lines changed

osm-seed/templates/web/web-service.yaml

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,22 @@ metadata:
88
component: web-service
99
environment: {{ .Values.environment }}
1010
release: {{ .Release.Name }}
11-
{{- if eq .Values.cloudProvider "aws" }}
1211
annotations:
13-
service.beta.kubernetes.io/aws-load-balancer-connection-idle-timeout: "300"
14-
{{- if .Values.AWS_SSL_ARN }}
15-
service.beta.kubernetes.io/aws-load-balancer-ssl-cert: {{ .Values.AWS_SSL_ARN }}
16-
service.beta.kubernetes.io/aws-load-balancer-backend-protocol: http
17-
service.beta.kubernetes.io/aws-load-balancer-ssl-ports: https
18-
{{- end }}
19-
{{- end }}
12+
kubernetes.io/ingress.class: nginx
13+
# nginx.ingress.kubernetes.io/proxy-body-size: "300m"
14+
cert-manager.io/cluster-issuer: letsencrypt-prod-issuer
2015
spec:
21-
# In case cloudProvider=aws
22-
{{- if eq .Values.cloudProvider "aws" }}
23-
type: LoadBalancer
24-
{{- end }}
25-
# In case cloudProvider=gcp
26-
{{- if eq .Values.cloudProvider "gcp" }}
27-
type: LoadBalancer
28-
{{- end }}
29-
# In case cloudProvider=azure
30-
{{- if eq .Values.cloudProvider "azure" }}
31-
type: LoadBalancer
32-
{{- end }}
33-
# In case cloudProvider=minikube
3416
{{- if eq .Values.cloudProvider "minikube" }}
3517
type: NodePort
18+
{{- else }}
19+
type: ClusterIP
3620
{{- end }}
3721
ports:
3822
- port: 80
3923
targetPort: http
24+
nodePort: null
4025
protocol: TCP
4126
name: http
42-
{{- if .Values.AWS_SSL_ARN }} #FIXME: make generic
43-
- port: 443
44-
targetPort: http
45-
protocol: TCP
46-
name: https
47-
{{- end }}
4827
selector:
4928
app: {{ template "osm-seed.name" . }}
5029
release: {{ .Release.Name }}

0 commit comments

Comments
 (0)