Skip to content

Commit

Permalink
Create deployment-with-pvc.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 29, 2024
1 parent 1896ed2 commit c5dd604
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: pi-network
spec:
replicas: 3
selector:
matchLabels:
app: pi-network
template:
metadata:
labels:
app: pi-network
spec:
containers:
- name: pi-network
image: pi-network:latest
ports:
- containerPort: 8080
volumeMounts:
- name: pi-network-pvc
mountPath: /mnt/data
volumes:
- name: pi-network-pvc
persistentVolumeClaim:
claimName: pi-network-pvc

0 comments on commit c5dd604

Please sign in to comment.