Skip to content
Snippets Groups Projects
Commit 2f8caccf authored by Jan Krčmář's avatar Jan Krčmář Committed by honza801@ADMIN.META
Browse files

kustomization namespace default, suggest namePrefix

examples nginx-pod-longhorn.yaml, nginx-pod-rbd.yaml
parent 7e1c3753
No related branches found
No related tags found
No related merge requests found
namespace: default
#namePrefix: devel-
bases:
- nginx.yaml
- service.yaml
- ingress.yaml
namespace: dexovo
---
apiVersion: v1
kind: Pod
metadata:
name: longhorn-demo-pod
spec:
containers:
- name: web-server
image: nginx
volumeMounts:
- name: mypvc
mountPath: /var/lib/www/html
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: longhorn-pvc
readOnly: false
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: longhorn-pvc
spec:
storageClassName: longhorn
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: Pod
metadata:
name: csi-rbd-demo-pod
spec:
containers:
- name: web-server
image: nginx
volumeMounts:
- name: mypvc
mountPath: /var/lib/www/html
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: rbd-pvc
readOnly: false
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: rbd-pvc
spec:
storageClassName: csi-rbd-sc
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 5Gi
......@@ -4,8 +4,10 @@ kind: Service
metadata:
name: nginx
spec:
#type: NodePort
selector:
app: nginx
ports:
- protocol: TCP
port: 80
#nodePort: 30080
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment