diff --git a/minikube/deploy/k8s.yaml b/minikube/deploy/k8s.yaml new file mode 100644 index 0000000..32b9f5e --- /dev/null +++ b/minikube/deploy/k8s.yaml @@ -0,0 +1,43 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: local-devex-deploy + labels: + app: local-devex +spec: + replicas: 1 + selector: + matchLabels: + app: local-devex + template: + metadata: + labels: + app: local-devex + spec: + containers: + - name: app + image: local/devex:v1 + ports: + - containerPort: 8080 + volumeMounts: + - mountPath: /data + name: test-volume + volumes: + - name: test-volume + hostPath: + # directory location on host + path: /data +--- +apiVersion: v1 +kind: Service +metadata: + name: local-devex-svc +spec: + type: NodePort + selector: + app: local-devex + ports: + - name: local-devex-port + protocol: TCP + port: 8080 + targetPort: 8080 \ No newline at end of file