2016-09-30 15:23:47 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: netchecker-server
|
|
|
|
labels:
|
|
|
|
app: netchecker-server
|
|
|
|
namespace: {{ netcheck_namespace }}
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: netchecker-server
|
|
|
|
image: "{{ server_img }}"
|
|
|
|
env:
|
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
2016-12-23 14:44:44 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: {{ netchecker_server_cpu_limit }}
|
|
|
|
memory: {{ netchecker_server_memory_limit }}
|
|
|
|
requests:
|
|
|
|
cpu: {{ netchecker_server_cpu_requests }}
|
|
|
|
memory: {{ netchecker_server_memory_requests }}
|
2016-09-30 15:23:47 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 8081
|
|
|
|
hostPort: 8081
|
|
|
|
- name: kubectl-proxy
|
|
|
|
image: "{{ kubectl_image }}"
|
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
2016-12-23 14:44:44 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: {{ netchecker_kubectl_cpu_limit }}
|
|
|
|
memory: {{ netchecker_kubectl_memory_limit }}
|
|
|
|
requests:
|
|
|
|
cpu: {{ netchecker_kubectl_cpu_requests }}
|
|
|
|
memory: {{ netchecker_kubectl_memory_requests }}
|
2016-09-30 15:23:47 +00:00
|
|
|
args:
|
|
|
|
- proxy
|
2016-12-28 13:58:37 +00:00
|
|
|
securityContext:
|
|
|
|
capabilities:
|
|
|
|
drop:
|
|
|
|
{% for c in apps_drop_cap %}
|
|
|
|
- {{ c.upper() }}
|
|
|
|
{% endfor %}
|