...
 
Commits (4)
......@@ -11,7 +11,7 @@ build: all IMAGE
docker build . -t $$(cat IMAGE)
push: build
docker push $$(cat IMAGE)
rendered_k8s_manifests.yaml: IMAGE k8s/deployment.yaml k8s/service.yaml k8s/ingress.yaml
rendered_k8s_manifests.yaml: IMAGE k8s/daemon-set.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 $<
kubectl --context=code-supply-zonal-production apply -f $<
---
apiVersion: apps/v1
kind: Deployment
kind: DaemonSet
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: http://code.supply/$1
traefik.ingress.kubernetes.io/redirect-replacement: https://code.supply/$1
traefik.ingress.kubernetes.io/redirect-permanent: "true"
spec:
rules:
......
......@@ -6,6 +6,7 @@
<title>Code Supply</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
<link rel="stylesheet" href="/styles.css">
<link rel="icon" type="image/png" href="/images/favicon.png">
</head>
<body>
<div class="container">
......