forked from cetic/helm-microservice
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnginx-values.yaml
49 lines (43 loc) · 938 Bytes
/
nginx-values.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
global:
replicaCount: 1
image:
repository: "nginx"
tag: "1.24.0"
pullPolicy: Always
services:
- name: web
type: NodePort
annotations: {}
specs:
- port: 80
targetPort: 80
nodePort: 30080
name: web
volumes:
enabled: true
pvc:
enabled: false
configMaps:
- name: nginx-config
mountPath: /etc/nginx/conf.d/
data:
default.conf: |
server {
listen 80;
listen [::]:80;
server_name www.example.com;
location / {
proxy_pass http://localhost:8000;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
resources:
limits:
cpu: 100m
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi