You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
918 B

  1. apiVersion: apps/v1beta1
  2. kind: Deployment
  3. metadata:
  4. name: netchecker-server
  5. spec:
  6. replicas: 1
  7. template:
  8. metadata:
  9. name: netchecker-server
  10. labels:
  11. app: netchecker-server
  12. namespace: {{ netcheck_namespace }}
  13. spec:
  14. containers:
  15. - name: netchecker-server
  16. image: "{{ server_img }}"
  17. env:
  18. imagePullPolicy: {{ k8s_image_pull_policy }}
  19. resources:
  20. limits:
  21. cpu: {{ netchecker_server_cpu_limit }}
  22. memory: {{ netchecker_server_memory_limit }}
  23. requests:
  24. cpu: {{ netchecker_server_cpu_requests }}
  25. memory: {{ netchecker_server_memory_requests }}
  26. ports:
  27. - containerPort: 8081
  28. hostPort: 8081
  29. args:
  30. - "-v=5"
  31. - "-logtostderr"
  32. - "-kubeproxyinit"
  33. - "-endpoint=0.0.0.0:8081"