diff --git a/kustomization.yaml b/kustomization.yaml index a3fbb368274b3635263f2fa4a8ddd2fa0a2b9ee9..8f692b4be574375c879131e4dcf63201fdb6ec0e 100644 --- a/kustomization.yaml +++ b/kustomization.yaml @@ -1,6 +1,9 @@ +namespace: default + +#namePrefix: devel- + bases: - nginx.yaml - service.yaml - ingress.yaml -namespace: dexovo diff --git a/nginx-pod-longhorn.yaml b/nginx-pod-longhorn.yaml new file mode 100644 index 0000000000000000000000000000000000000000..54f7391a911517e88d89c72658d9122e1d5c1e29 --- /dev/null +++ b/nginx-pod-longhorn.yaml @@ -0,0 +1,29 @@ +--- +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 diff --git a/nginx-pod-rbd.yaml b/nginx-pod-rbd.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5ecedc6d73fb4f73d7ba72841a28e265695f82d0 --- /dev/null +++ b/nginx-pod-rbd.yaml @@ -0,0 +1,30 @@ +--- +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 diff --git a/service.yaml b/service.yaml index 83598c00aa3ac59d0204fa13e97a652f25ff0986..bfe797a331c0371aace40da3c2550a92d1fc4066 100644 --- a/service.yaml +++ b/service.yaml @@ -4,8 +4,10 @@ kind: Service metadata: name: nginx spec: + #type: NodePort selector: app: nginx ports: - protocol: TCP port: 80 + #nodePort: 30080