Skip to content

Commit

Permalink
Added pvc related example
Browse files Browse the repository at this point in the history
  • Loading branch information
qtsathish committed Apr 11, 2021
1 parent 95cb8a2 commit ccdd1da
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
7 changes: 7 additions & 0 deletions April21/deployments/forclouddeployment/db-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ spec:
ports:
- containerPort: 5432
protocol: TCP
volumeMounts:
- mountPath: /test
name: pv-storage
volumes:
- name: pv-storage
persistentVolumeClaim:
claimName: pvc-demo
---
apiVersion: v1
kind: Service
Expand Down
11 changes: 11 additions & 0 deletions April21/deployments/forclouddeployment/gke-pvcfordb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# pvc-demo.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-demo
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
25 changes: 25 additions & 0 deletions April21/deployments/forcloudingress/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: ingress-demo
annotations:
kubernetes.io/ingress.global-static-ip-name: my-static-address
kubernetes.io/ingress.class: "gce"
spec:
rules:
- http:
paths:
- path: /admin
backend:
serviceName: admin-service
servicePort: 80
- path: /inventory
backend:
serviceName: inventory-service
servicePort: 80
- path: /order
backend:
serviceName: order-service
servicePort: 80

0 comments on commit ccdd1da

Please sign in to comment.