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.
 
 
 
 
 

69 lines
1.4 KiB

apiVersion: v1
kind: Service
metadata:
name: registry
namespace: registry
labels:
io.kompose.service: registry
spec:
type: NodePort
ports:
- name: registry
port: 5000
protocol: TCP
nodePort: 30500
targetPort: 5000
selector:
io.kompose.service: registry
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: registry-claim0
name: registry-claim0
namespace: registry
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: registry-deployment
namespace: registry
labels:
k8s-app: registry
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: registry
strategy:
type: Recreate
template:
metadata:
labels:
io.kompose.service: registry
spec:
containers:
- env:
- name: REGISTRY_STORAGE_DELETE_ENABLED
value: "true"
image: registry:2.7
name: registry
ports:
- containerPort: 5000
imagePullPolicy: Always
volumeMounts:
- mountPath: /var/lib/registry
name: registry-claim0
volumes:
- name: registry-claim0
persistentVolumeClaim:
claimName: registry-claim0