Skip to content

Commit 67f2ae5

Browse files
committed
Rewrite Gateway
1 parent c5cd95d commit 67f2ae5

8 files changed

Lines changed: 60 additions & 50 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: v2
22
name: gateway-config
33
type: application
4-
version: 1.0.4
4+
version: 1.0.5

infrastructure/modules/cloudijs-system/charts/gateway/templates/gateway.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,6 @@ spec:
1515
- name: http
1616
port: 80
1717
protocol: HTTP
18-
allowedRoutes:
19-
namespaces:
20-
from: All
21-
- name: https
22-
port: 443
23-
protocol: HTTPS
24-
tls:
25-
mode: Terminate
26-
certificateRefs:
27-
- kind: Secret
28-
group: ""
29-
name: shared-gateway-cert
3018
allowedRoutes:
3119
namespaces:
3220
from: All

services/apps/sample-nginx/gateway.yaml

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,12 @@
11
apiVersion: gateway.networking.k8s.io/v1
2-
kind: Gateway
3-
metadata:
4-
name: sample-nginx-gateway
5-
namespace: apps
6-
annotations:
7-
cert-manager.io/issuer: sample-nginx-issuer
8-
spec:
9-
gatewayClassName: cilium
10-
infrastructure:
11-
annotations:
12-
load-balancer.hetzner.cloud/name: "platform-gateway"
13-
load-balancer.hetzner.cloud/location: "nbg1"
14-
load-balancer.hetzner.cloud/uses-proxyprotocol: "true"
15-
listeners:
16-
- name: http
17-
hostname: test.cloudijs.nl
18-
port: 80
19-
protocol: HTTP
20-
allowedRoutes:
21-
namespaces:
22-
from: Same
23-
- name: https
24-
hostname: test.cloudijs.nl
25-
port: 443
26-
protocol: HTTPS
27-
tls:
28-
mode: Terminate
29-
certificateRefs:
30-
- name: test-cloudijs-nl-tls
31-
kind: Secret
32-
group: ""
33-
allowedRoutes:
34-
namespaces:
35-
from: Same
36-
---
37-
apiVersion: gateway.networking.k8s.io/v1
382
kind: HTTPRoute
393
metadata:
404
name: sample-nginx
415
namespace: apps
426
spec:
437
parentRefs:
448
- name: sample-nginx-gateway
9+
namespace: cloudijs-system
4510
rules:
4611
- matches:
4712
- path:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
apiVersion: gateway.networking.k8s.io/v1
2+
kind: Gateway
3+
metadata:
4+
name: shared-gateway-http
5+
namespace: cloudijs-system
6+
annotations:
7+
cert-manager.io/cluster-issuer: letsencrypt-http
8+
spec:
9+
gatewayClassName: cilium
10+
infrastructure:
11+
annotations:
12+
load-balancer.hetzner.cloud/name: "platform-gateway"
13+
load-balancer.hetzner.cloud/location: "nbg1"
14+
load-balancer.hetzner.cloud/uses-proxyprotocol: "true"
15+
listeners:
16+
- name: http
17+
hostname: test.cloudijs.nl
18+
port: 80
19+
protocol: HTTP
20+
allowedRoutes:
21+
namespaces:
22+
from: All
23+
- name: https
24+
hostname: test.cloudijs.nl
25+
port: 443
26+
protocol: HTTPS
27+
tls:
28+
mode: Terminate
29+
certificateRefs:
30+
- name: test-cloudijs-nl-tls
31+
kind: Secret
32+
group: ""
33+
allowedRoutes:
34+
namespaces:
35+
from: All
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: cert-manager.io/v1
2+
kind: ClusterIssuer
3+
metadata:
4+
name: letsencrypt-http
5+
namespace: cloudijs-system
6+
spec:
7+
acme:
8+
server: https://acme-v02.api.letsencrypt.org/directory
9+
privateKeySecretRef:
10+
name: letsencrypt-http-key
11+
solvers:
12+
- http01:
13+
gatewayHTTPRoute:
14+
parentRefs:
15+
- name: shared-gateway-http
16+
namespace: cloudijs-system
17+
kind: Gateway
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- gateway.yaml
5+
- issuer.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
apiVersion: kustomize.config.k8s.io/v1beta1
22
kind: Kustomization
33
resources:
4+
- gateway
45
- pocket-id
56
- sealed-secrets

services/cluster/pocket-id/kustomization.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
apiVersion: kustomize.config.k8s.io/v1beta1
32
kind: Kustomization
43
resources:

0 commit comments

Comments
 (0)