k0s-cluster/manifests/registry/registry-deployment.yaml

50 lines
1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: registry-deploy
name: registry-deploy
namespace: production-system
spec:
replicas: 1
selector:
matchLabels:
app: registry-deploy
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: registry-deploy
spec:
containers:
- image: registry:3.0.0
name: registry
ports:
- containerPort: 5000
env:
- name: OTEL_TRACES_EXPORTER
value: "none"
resources:
limits:
memory: "500Mi"
cpu: "200m"
requests:
memory: "128Mi"
cpu: "100m"
volumeMounts:
- name: registry-setup
mountPath: /etc/distribution
readOnly: true
volumes:
- name: registry-setup
projected:
sources:
- secret:
name: registry-credentials
- configMap:
name: registry-cm
status: {}