-
Notifications
You must be signed in to change notification settings - Fork 30
/
kube-nginx-proxy-daemonset.yaml
42 lines (42 loc) · 1.15 KB
/
kube-nginx-proxy-daemonset.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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: "kube-nginx-proxy"
labels:
app: "kube-nginx-proxy"
version: "0.1.3"
namespace: "dev"
annotations:
description: "nginx reverse proxy for services and pods powered by annotations"
spec:
template:
metadata:
labels:
app: "kube-nginx-proxy"
spec:
hostNetwork: true
# use a nodeSelector to control where pods are scheduled
# e.g., specify a hostname to run on a single host, or a label to run on a specific group of hosts
#nodeSelector:
# kubernetes.io/hostname: <host>
# <label_name>: <label_value>
containers:
-
name: "kube-nginx-proxy"
image: "kylemcc/kube-nginx-proxy:0.1.3"
resources:
requests:
cpu: "100m"
memory: "256Mi"
ports:
-
containerPort: 80
hostPort: 80
-
containerPort: 443
hostPort: 443
imagePullPolicy: "Always"
securityContext:
privileged: true
restartPolicy: "Always"
terminationGracePeriodSeconds: 30