2018-02-04 04:32:33 +00:00
|
|
|
---
|
2018-02-09 07:47:57 +00:00
|
|
|
apiVersion: apps/v1
|
2018-02-04 04:32:33 +00:00
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
2018-02-09 07:47:57 +00:00
|
|
|
name: registry-proxy
|
|
|
|
namespace: {{ registry_namespace }}
|
2018-02-04 04:32:33 +00:00
|
|
|
labels:
|
2018-02-09 07:47:57 +00:00
|
|
|
k8s-app: registry-proxy
|
2018-02-04 04:32:33 +00:00
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
version: v{{ registry_proxy_image_tag }}
|
|
|
|
spec:
|
2018-02-09 07:47:57 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: registry-proxy
|
|
|
|
version: v{{ registry_proxy_image_tag }}
|
2018-02-04 04:32:33 +00:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2018-02-09 07:47:57 +00:00
|
|
|
k8s-app: registry-proxy
|
|
|
|
kubernetes.io/name: "registry-proxy"
|
2018-02-04 04:32:33 +00:00
|
|
|
kubernetes.io/cluster-service: "true"
|
|
|
|
version: v{{ registry_proxy_image_tag }}
|
|
|
|
spec:
|
2018-09-25 14:50:22 +00:00
|
|
|
priorityClassName: {% if registry_namespace == 'kube-system' %}system-node-critical{% else %}k8s-cluster-critical{% endif %}{{''}}
|
2018-08-22 16:16:13 +00:00
|
|
|
serviceAccountName: registry-proxy
|
2018-02-04 04:32:33 +00:00
|
|
|
containers:
|
2018-02-09 07:47:57 +00:00
|
|
|
- name: registry-proxy
|
2018-02-04 04:32:33 +00:00
|
|
|
image: {{ registry_proxy_image_repo }}:{{ registry_proxy_image_tag }}
|
2018-02-09 07:47:57 +00:00
|
|
|
imagePullPolicy: {{ k8s_image_pull_policy }}
|
2018-02-04 04:32:33 +00:00
|
|
|
env:
|
|
|
|
- name: REGISTRY_HOST
|
2018-02-18 07:46:03 +00:00
|
|
|
value: registry.{{ registry_namespace }}.svc.{{ cluster_name }}
|
2018-02-04 04:32:33 +00:00
|
|
|
- name: REGISTRY_PORT
|
|
|
|
value: "5000"
|
|
|
|
ports:
|
|
|
|
- name: registry
|
|
|
|
containerPort: 80
|
|
|
|
hostPort: 5000
|