-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjumppod-ingress-nginx.yml
148 lines (130 loc) · 3.33 KB
/
jumppod-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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
replicaCount: 1
secret:
enabled: false
name: ""
mountPath: {}
subPath: {}
readOnly: true
data: {}
configMap:
enabled: true
name: "jumppod"
mountPath: /app/core/config
readOnly: true
data:
.app.config.json : |-
{
"AppName": "Commons Service",
"GRPCTimeout": 10,
"CacheExpiry": 300,
"CacheCleanup": 600,
"DefaultPageLimit": 3,
"ClientTimeout": 10
}
image:
repository: devopscorner/cicd:alpine
pullPolicy: Always
tag: "latest"
imagePullSecrets: []
nameOverride: ""
fullnameOverride: "jumppod-nginx"
serviceAccount:
create: true
annotations: {}
name: jumppod
namespace: devops-tools
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
envFrom:
enabled: true
envFrom:
- configMapRef:
name: jumppod-config
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: []
application:
enabled: true
env:
- name: HELM_TEMPLATE_NAME
value: api
resources:
limits:
cpu: 200m
memory: 200Mi
requests:
cpu: 140m
memory: 170Mi
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 5
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
nodeSelector:
enabled: true
select:
node: "devops-tools" # DEV/UAT Cluster
tolerations: []
affinity: {}
podAnnotations: {}
podSecurityContext: {}
securityContext: {}