Skip to content

Commit 9b6eb59

Browse files
committed
Reorg: web for DO
1 parent 616d796 commit 9b6eb59

17 files changed

+47
-54
lines changed

apps/web/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deploy `argo` and that will then deploy the environments
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
44
resources:
55
- ./project.yaml
6+
- ./stage_application.yaml
7+
- ./prod_application.yaml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spec:
77
project: web
88
source:
99
repoURL: https://github.com/metacpan/metacpan-k8s
10-
targetRevision: main
10+
targetRevision: digitalocean-main
1111
path: apps/web/environments/prod
1212
destination:
1313
server: https://kubernetes.default.svc
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spec:
77
project: web
88
source:
99
repoURL: https://github.com/metacpan/metacpan-k8s
10-
targetRevision: main
10+
targetRevision: digitalocean-main
1111
path: apps/web/environments/stage
1212
destination:
1313
server: https://kubernetes.default.svc

apps/web/base/deployment.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ metadata:
55
name: web
66
labels:
77
app: web
8-
namespace: apps--web
98
spec:
109
replicas: 3
1110
selector:

apps/web/base/kustomization.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
33
kind: Kustomization
44
resources:
55
- ./deployment.yaml
6-
- ./ingress.yaml
7-
- ./namespace.yaml
86
- ./service.yaml

apps/web/base/service.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: web
5-
namespace: apps--web
65
spec:
76
ports:
87
- port: 80
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ metadata:
55
namespace: apps--web
66
annotations:
77
cert-manager.io/cluster-issuer: letsencrypt-production
8-
traefik.ingress.kubernetes.io/router.middlewares: default-redirect-https@kubernetescrd
98
spec:
9+
ingressClassName: nginx
1010
tls:
1111
- hosts:
12-
- web.hz.metacpan.org
12+
- web.do.metacpan.org
1313
secretName: web-tls
1414
rules:
15-
- host: web.hz.metacpan.org
15+
- host: web.do.metacpan.org
1616
http:
1717
paths:
1818
- pathType: Prefix

apps/web/environments/prod/kustomization.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
3+
namespace: apps--web
34
bases:
45
- ../../base/
56
images:
@@ -8,3 +9,6 @@ images:
89
resources:
910
- fastly-api_sealedsecret.yaml
1011
- purge-fastly-cache.yaml
12+
- prod_sealedsecret.yaml
13+
- namespace.yaml
14+
- ingress.yaml

0 commit comments

Comments
 (0)