feat: deploy frontend

Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
Ameya Shenoy 2021-02-12 01:13:46 +05:30
parent fd61d1231f
commit f685b1a0fd
Signed by: codingcoffee
GPG key ID: F7D58AAC5DACF8D3
3 changed files with 71 additions and 0 deletions

View 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
View 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
View 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
...