diff --git a/kanico/virtualcard-pvc.yaml b/kanico/virtualcard-pvc.yaml new file mode 100644 index 0000000..2edc914 --- /dev/null +++ b/kanico/virtualcard-pvc.yaml @@ -0,0 +1,13 @@ +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: virtualporfolio-claim +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 4Gi + storageClassName: manual + volumeMode: Filesystem + volumeName: virtual-porfolio-pv diff --git a/kubernetes/hommer-deployment.yml b/kubernetes/hommer-deployment.yml new file mode 100644 index 0000000..34248a5 --- /dev/null +++ b/kubernetes/hommer-deployment.yml @@ -0,0 +1,76 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hommer + labels: + app: hommer +spec: + selector: + matchLabels: + app: hommer + replicas: 1 # You could also consider elastic scaling for this deployment + template: + metadata: + labels: + app: hommer + spec: + containers: + - name: hommer + image: b4bz/homer:v23.09.1 + volumeMounts: + - name: assets + mountPath: /www/assets + ports: + - containerPort: 8080 + volumes: + - name: assets + persistentVolumeClaim: + claimName: assets-claim + +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: assets-claim + namespace: default +spec: + storageClassName: manual + volumeMode: Filesystem + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + volumeName: hommer-pv + +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: hommer-pv + labels: + type: local +spec: + capacity: + storage: 1Gi + accessModes: + - ReadWriteOnce + persistentVolumeReclaimPolicy: Retain + storageClassName: manual + hostPath: + path: "/home/ubuntu/hommer/assets" + +--- +apiVersion: v1 +kind: Service +metadata: + name: hommer-dashboard +spec: + selector: + app: hommer + ports: + - port: 82 + targetPort: 8080 + + diff --git a/kubernetes/pvc.yml b/kubernetes/pvc.yml new file mode 100644 index 0000000..8227f4a --- /dev/null +++ b/kubernetes/pvc.yml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: task-pv-claim +spec: + storageClassName: manual + volumeMode: Filesystem + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi + volumeName: hommer-pv