-
Notifications
You must be signed in to change notification settings - Fork 0
/
poll.deployment.yaml
45 lines (45 loc) · 1.08 KB
/
poll.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
45
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: default
name: kube-deploy-poll
labels:
services: "poll"
spec:
replicas: 2
selector:
matchLabels:
services: "poll"
template:
metadata:
labels:
services: "poll"
spec:
restartPolicy: Always
containers:
- name: "t-dop-600-poll-1"
image: "epitechcontent/t-dop-600-poll:k8s"
resources:
limits:
memory: 128M
envFrom:
- configMapRef:
name: kube-config-redis
# env:
# - name: "REDIS_HOST"
# valueFrom:
# configMapKeyRef:
# key: "REDIS_HOST"
# name: "kube-config-poll"
ports:
- containerPort: 80
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: services
operator: In
values:
- poll
topologyKey: kubernetes.io/hostname