From b633179a46eed1a20800fe2ca9b5dbcdd1b9c194 Mon Sep 17 00:00:00 2001 From: akiyamn Date: Thu, 7 Jul 2022 20:48:26 +1000 Subject: Add PVC --- yamls/deployment.yaml | 26 ++++++++++++++++++++++++++ yamls/i2-deploy.yaml | 26 -------------------------- yamls/pvc.yaml | 13 +++++++++++++ 3 files changed, 39 insertions(+), 26 deletions(-) create mode 100644 yamls/deployment.yaml delete mode 100644 yamls/i2-deploy.yaml create mode 100644 yamls/pvc.yaml diff --git a/yamls/deployment.yaml b/yamls/deployment.yaml new file mode 100644 index 0000000..c0d6fac --- /dev/null +++ b/yamls/deployment.yaml @@ -0,0 +1,26 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + creationTimestamp: null + labels: + app: i2-deploy + name: i2-deploy +spec: + replicas: 1 + selector: + matchLabels: + app: i2-deploy + strategy: {} + template: + metadata: + creationTimestamp: null + labels: + app: i2-deploy + spec: + containers: + - image: akiyamn/i2 + name: i2 + ports: + - containerPort: 80 + resources: {} +status: {} \ No newline at end of file diff --git a/yamls/i2-deploy.yaml b/yamls/i2-deploy.yaml deleted file mode 100644 index c0d6fac..0000000 --- a/yamls/i2-deploy.yaml +++ /dev/null @@ -1,26 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: i2-deploy - name: i2-deploy -spec: - replicas: 1 - selector: - matchLabels: - app: i2-deploy - strategy: {} - template: - metadata: - creationTimestamp: null - labels: - app: i2-deploy - spec: - containers: - - image: akiyamn/i2 - name: i2 - ports: - - containerPort: 80 - resources: {} -status: {} \ No newline at end of file diff --git a/yamls/pvc.yaml b/yamls/pvc.yaml new file mode 100644 index 0000000..3959dee --- /dev/null +++ b/yamls/pvc.yaml @@ -0,0 +1,13 @@ +kind: PersistentVolume +apiVersion: v1 +metadata: + name: pv-storage + labels: + type: local +spec: + capacity: + storage: 2Gi + accessModes: + - ReadWriteMany + hostPath: + path: "/var/www/html" -- cgit v1.2.3