-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathingress-nginx.yml
65 lines (63 loc) · 2.08 KB
/
ingress-nginx.yml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
service:
enabled: true
type: ClusterIP
ports:
- name: http
port: 80
targetPort: 80
protocol: TCP
- name: ssh
port: 2222
targetPort: 22
protocol: TCP
containers:
ports:
- name: http
containerPort: 80
protocol: TCP
- name: ssh
containerPort: 22
protocol: TCP
ingress:
enabled: true
annotations:
ingress.kubernetes.io/whitelist-source-range: 32.0.0.0/32
kubernetes.io/ingress.class: nginx
meta.helm.sh/release-name: jumppod-nginx
meta.helm.sh/release-namespace: devops-tools
nginx.ingress.kubernetes.io/affinity: cookie
nginx.ingress.kubernetes.io/client-max-body-size: 512M
nginx.ingress.kubernetes.io/cors-allow-headers: '*'
nginx.ingress.kubernetes.io/cors-allow-methods: '*'
nginx.ingress.kubernetes.io/cors-allow-origin: '*'
nginx.ingress.kubernetes.io/enable-cors: 'true'
nginx.ingress.kubernetes.io/force-ssl-redirect: 'true'
nginx.ingress.kubernetes.io/from-to-www-redirect: 'true'
nginx.ingress.kubernetes.io/proxy-connect-timeout: '30'
nginx.ingress.kubernetes.io/proxy-read-timeout: '3600'
nginx.ingress.kubernetes.io/proxy-send-timeout: '3600'
nginx.ingress.kubernetes.io/secure-backends: 'true'
nginx.ingress.kubernetes.io/server-snippets: |
location / {
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_cache_bypass $http_upgrade;
}
nginx.ingress.kubernetes.io/ssl-redirect: 'true'
nginx.ingress.kubernetes.io/use-proxy-protocol: 'true'
nginx.ingress.kubernetes.io/use-regex: 'true'
nginx.org/websocket-services: 'jumppod-nginx'
hosts:
- host: jumppods-nginx.awscb.id
http:
paths:
- path: /
backend:
serviceName: jumppod-nginx
servicePort: 80
tls: []