a58af3e371
Uses Google-managed certificates and an Ingress resource to set up an HTTPS load-balancer. This probably won't be the final version as the GKE Ingress is very limited and can not do things like redirect URLs, which I need to decommission the old setup.
34 lines
544 B
YAML
34 lines
544 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: tazblog
|
|
labels:
|
|
app: tazblog
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: tazblog
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: tazblog
|
|
spec:
|
|
containers:
|
|
- name: tazblog
|
|
image: nixery.local/shell/tazjin.blog:{{ gitHEAD }}
|
|
command: [ "tazblog" ]
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: tazblog
|
|
spec:
|
|
type: NodePort
|
|
selector:
|
|
app: tazblog
|
|
ports:
|
|
- protocol: TCP
|
|
port: 8000
|
|
targetPort: 8000
|