53 lines
1.2 KiB
Text
53 lines
1.2 KiB
Text
|
apiVersion: v1
|
||
|
kind: ReplicationController
|
||
|
metadata:
|
||
|
name: kube-registry-v0
|
||
|
namespace: kube-system
|
||
|
labels:
|
||
|
k8s-app: kube-registry
|
||
|
version: v0
|
||
|
# kubernetes.io/cluster-service: "true"
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
k8s-app: kube-registry
|
||
|
version: v0
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
k8s-app: kube-registry
|
||
|
version: v0
|
||
|
# kubernetes.io/cluster-service: "true"
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: registry
|
||
|
image: registry:2
|
||
|
resources:
|
||
|
# keep request = limit to keep this container in guaranteed class
|
||
|
limits:
|
||
|
cpu: 100m
|
||
|
memory: 100Mi
|
||
|
requests:
|
||
|
cpu: 100m
|
||
|
memory: 100Mi
|
||
|
env:
|
||
|
- name: REGISTRY_HTTP_ADDR
|
||
|
value: :5000
|
||
|
- name: REGISTRY_STORAGE
|
||
|
value: gcs
|
||
|
- name: REGISTRY_STORAGE_GCS_BUCKET
|
||
|
value: kube-registry
|
||
|
- name: REGISTRY_STORAGE_GCS_KEYFILE
|
||
|
value: /gcs/keyfile
|
||
|
ports:
|
||
|
- containerPort: 5000
|
||
|
name: registry
|
||
|
protocol: TCP
|
||
|
volumeMounts:
|
||
|
- name: gcs-key
|
||
|
mountPath: /gcs
|
||
|
volumes:
|
||
|
- name: gcs-key
|
||
|
secret:
|
||
|
secretName: gcs-key-secret
|