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.

36 lines
1.0 KiB

  1. ---
  2. apiVersion: apps/v1
  3. kind: DaemonSet
  4. metadata:
  5. name: registry-proxy
  6. namespace: {{ registry_namespace }}
  7. labels:
  8. k8s-app: registry-proxy
  9. kubernetes.io/cluster-service: "true"
  10. version: v{{ registry_proxy_image_tag }}
  11. spec:
  12. selector:
  13. matchLabels:
  14. k8s-app: registry-proxy
  15. version: v{{ registry_proxy_image_tag }}
  16. template:
  17. metadata:
  18. labels:
  19. k8s-app: registry-proxy
  20. kubernetes.io/name: "registry-proxy"
  21. kubernetes.io/cluster-service: "true"
  22. version: v{{ registry_proxy_image_tag }}
  23. spec:
  24. containers:
  25. - name: registry-proxy
  26. image: {{ registry_proxy_image_repo }}:{{ registry_proxy_image_tag }}
  27. imagePullPolicy: {{ k8s_image_pull_policy }}
  28. env:
  29. - name: REGISTRY_HOST
  30. value: registry.{{ registry_namespace }}.svc.{{ cluster_name }}
  31. - name: REGISTRY_PORT
  32. value: "5000"
  33. ports:
  34. - name: registry
  35. containerPort: 80
  36. hostPort: 5000