-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
44 lines (42 loc) · 971 Bytes
/
deployment.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
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: ahsouza-nginx
### 3 MAX PODS to Templates
spec:
replicas: 3
template:
metadata:
labels:
app: ahsouza-nginx
spec:
### Container NGINX + Alpine
containers:
- name: nginx
image: nginx:1.17-alpine
ports:
- containerPort: 80
name: http
protocol: TCP
- containerPort: 443
name: https
protocol: TCP
resources:
limits:
cpu: 10m
memory: 20Mi
requests:
cpu: 10m
memory: 20Mi
volumeMounts:
- mountPath: /etc/nginx/conf.d
name: nginx-conf
readOnly: true
### Volume Kubernets ConfigMap: Configurações NGINX
volumes:
- name: nginx-conf
configMap:
name: nginx-conf
items:
- key: nginx.conf
path: nginx.conf