2017-04-14 16:49:16 +08:00
|
|
|
apiVersion: apps/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: netchecker-server
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
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 }}
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: {{ netchecker_server_cpu_limit }}
|
|
|
|
memory: {{ netchecker_server_memory_limit }}
|
|
|
|
requests:
|
|
|
|
cpu: {{ netchecker_server_cpu_requests }}
|
|
|
|
memory: {{ netchecker_server_memory_requests }}
|
2018-08-23 00:16:13 +08:00
|
|
|
securityContext:
|
|
|
|
runAsUser: {{ netchecker_server_user | default('0') }}
|
|
|
|
runAsGroup: {{ netchecker_server_group | default('0') }}
|
2017-04-14 16:49:16 +08:00
|
|
|
ports:
|
|
|
|
- containerPort: 8081
|
|
|
|
args:
|
|
|
|
- "-v=5"
|
|
|
|
- "-logtostderr"
|
|
|
|
- "-kubeproxyinit"
|
|
|
|
- "-endpoint=0.0.0.0:8081"
|
2017-09-04 16:29:40 +08:00
|
|
|
tolerations:
|
|
|
|
- effect: NoSchedule
|
|
|
|
operator: Exists
|
2017-07-17 19:28:09 +08:00
|
|
|
serviceAccountName: netchecker-server
|