feat: deploy frontend
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
parent
fd61d1231f
commit
f685b1a0fd
3 changed files with 71 additions and 0 deletions
26
k8s/frontend-deployment.yaml
Normal file
26
k8s/frontend-deployment.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: bullish-frontend
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: bullish-frontend
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxUnavailable: 0
|
||||
maxSurge: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: bullish-frontend
|
||||
spec:
|
||||
containers:
|
||||
- name: bullish-frontend
|
||||
image: codingcoffee/bullish-frontend
|
||||
|
||||
...
|
||||
18
k8s/frontend-service.yaml
Normal file
18
k8s/frontend-service.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: bullish-frontend
|
||||
labels:
|
||||
app: bullish-frontend
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: bullish-frontend
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
protocol: TCP
|
||||
|
||||
...
|
||||
27
k8s/ingress-https.yaml
Normal file
27
k8s/ingress-https.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: production-https-ingress
|
||||
namespace: production
|
||||
annotations:
|
||||
ingress.kubernetes.io/ssl-redirect: "true"
|
||||
acme.cert-manager.io/http01-ingress-class: traefik
|
||||
cert-manager.io/issuer: letsencrypt-production
|
||||
|
||||
spec:
|
||||
rules:
|
||||
- host: bullish.codingcoffee.me
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: bullish-frontend
|
||||
servicePort: 80
|
||||
|
||||
tls:
|
||||
- hosts:
|
||||
- bullish.codingcoffee.me
|
||||
secretName: production-tls-cert
|
||||
|
||||
...
|
||||
Loading…
Reference in a new issue