32 lines
910 B
Django/Jinja
32 lines
910 B
Django/Jinja
---
|
|
apiVersion: extensions/v1beta1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: kube-registry-proxy
|
|
namespace: {{ system_namespace }}
|
|
labels:
|
|
k8s-app: kube-registry-proxy
|
|
kubernetes.io/cluster-service: "true"
|
|
version: v{{ registry_proxy_image_tag }}
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
k8s-app: kube-registry-proxy
|
|
kubernetes.io/name: "kube-registry-proxy"
|
|
kubernetes.io/cluster-service: "true"
|
|
version: v{{ registry_proxy_image_tag }}
|
|
spec:
|
|
containers:
|
|
- name: kube-registry-proxy
|
|
image: {{ registry_proxy_image_repo }}:{{ registry_proxy_image_tag }}
|
|
env:
|
|
- name: REGISTRY_HOST
|
|
value: kube-registry.kube-system.svc.cluster.local
|
|
- name: REGISTRY_PORT
|
|
value: "5000"
|
|
ports:
|
|
- name: registry
|
|
containerPort: 80
|
|
hostPort: 5000
|