...
 
Commits (2)
......@@ -11,7 +11,7 @@ build: all IMAGE
docker build . -t $$(cat IMAGE)
push: build
docker push $$(cat IMAGE)
rendered_k8s_manifests.yaml: IMAGE k8s/daemon-set.yaml k8s/service.yaml k8s/ingress.yaml
rendered_k8s_manifests.yaml: IMAGE k8s/deployment.yaml k8s/service.yaml k8s/ingress.yaml
cat k8s/*.yaml | IMAGE=$$(cat IMAGE) envsubst > $@
deploy: rendered_k8s_manifests.yaml
kubectl --context=code-supply-production apply -f $<
---
apiVersion: apps/v1
kind: DaemonSet
kind: Deployment
metadata:
name: &name codesupply-web
labels:
app: *name
spec:
replicas: 3
selector:
matchLabels:
app: *name
......
......@@ -6,7 +6,7 @@ metadata:
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/redirect-regex: ^https?://(?:www.)?code.supply/(.*)
traefik.ingress.kubernetes.io/redirect-replacement: https://code.supply/$1
traefik.ingress.kubernetes.io/redirect-replacement: http://code.supply/$1
traefik.ingress.kubernetes.io/redirect-permanent: "true"
spec:
rules:
......