k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
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.
41 lines
1.1 KiB
41 lines
1.1 KiB
---
|
|
apiVersion: v1
|
|
kind: ReplicationController
|
|
metadata:
|
|
name: kube-registry-v{{ registry_image_tag }}
|
|
namespace: {{ system_namespace }}
|
|
labels:
|
|
k8s-app: kube-registry-upstream
|
|
version: v{{ registry_image_tag }}
|
|
kubernetes.io/cluster-service: "true"
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
k8s-app: kube-registry-upstream
|
|
version: v{{ registry_image_tag }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
k8s-app: kube-registry-upstream
|
|
version: v{{ registry_image_tag }}
|
|
kubernetes.io/cluster-service: "true"
|
|
spec:
|
|
containers:
|
|
- name: registry
|
|
image: {{ registry_image_repo }}:{{ registry_image_tag }}
|
|
env:
|
|
- name: REGISTRY_HTTP_ADDR
|
|
value: :5000
|
|
- name: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY
|
|
value: /var/lib/registry
|
|
volumeMounts:
|
|
- name: image-store
|
|
mountPath: /var/lib/registry
|
|
ports:
|
|
- containerPort: 5000
|
|
name: registry
|
|
protocol: TCP
|
|
volumes:
|
|
- name: image-store
|
|
emptyDir: {}
|