diff --git a/manifests/frontend-svc.yml b/manifests/frontend-svc.yml new file mode 100644 index 00000000..ea653769 --- /dev/null +++ b/manifests/frontend-svc.yml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Service +metadata: + name: cryptomonitor-service +spec: + type: NodePort + selector: + app: cryptomonitor-app + ports: + - port: 80 + # By default and for convenience, the `targetPort` is set to + # the same value as the `port` field. + targetPort: 80 + # Optional field + # By default and for convenience, the Kubernetes control plane + # will allocate a port from a range (default: 30000-32767) + nodePort: 30007 diff --git a/manifests/frontend.yml b/manifests/frontend.yml new file mode 100644 index 00000000..e60c096c --- /dev/null +++ b/manifests/frontend.yml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cryptomonitor-deployment + labels: + app: cryptomonitor-app +spec: + replicas: 1 + selector: + matchLabels: + app: cryptomonitor-app + template: + metadata: + labels: + app: cryptomonitor-app + spec: + containers: + - name: cryptomonitor-container + image: vinitkulkarni/crypto-monitor-img:{BUILD_ID} + ports: + - containerPort: 80