forked from eficode-academy/learn-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathingress.yaml
31 lines (31 loc) · 894 Bytes
/
ingress.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Ingress should only exist if ingress.enabled is true in the values file
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress-name
labels:
app: echoserver
annotations:
# read annotations from user input here
kubernestes.io/ingress.class: nginx
spec:
tls:
- hosts: # make me dynamic
- example.com
- foo.example.com
secretName: my-ssl-cert-secret # make me dynamic
rules: # make me dynamic
- host: example.com
http:
paths:
- path: /
backend:
serviceName: service-name # should match service name from service.yaml
servicePort: service-port # make me dynamic
- host: foo.example.com
http:
paths:
- path: /
backend:
serviceName: service-name
servicePort: service-port # make me dynamic