Skip to content

Commit d957288

Browse files
authored
add gateway example files (#609)
1 parent 2a7bd18 commit d957288

5 files changed

Lines changed: 142 additions & 0 deletions

File tree

30-helm/gateway/gateway-demo.yaml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Gateway overlay values for the demo deployment.
2+
# Use with:
3+
# helm upgrade --install demo charts/ping-devops \
4+
# --namespace pinghelm \
5+
# -f sample/everything.yaml \
6+
# -f sample/gateway-demo.yaml
7+
8+
global:
9+
gateway:
10+
enabled: true
11+
addReleaseNameToHost: prepend
12+
defaultDomain: pingdemo.example
13+
parentRefs:
14+
- name: ping-devops-gateway
15+
namespace: pinghelm
16+
sectionName: https
17+
18+
pingaccess-admin:
19+
gateway:
20+
hosts:
21+
- host: pingaccess-admin._defaultDomain_
22+
paths:
23+
- path: /
24+
pathType: PathPrefix
25+
backend:
26+
serviceName: https
27+
28+
pingaccess-engine:
29+
gateway:
30+
hosts:
31+
- host: pingaccess-engine._defaultDomain_
32+
paths:
33+
- path: /
34+
pathType: PathPrefix
35+
backend:
36+
serviceName: https
37+
38+
pingdataconsole:
39+
gateway:
40+
hosts:
41+
- host: pingdataconsole._defaultDomain_
42+
paths:
43+
- path: /
44+
pathType: PathPrefix
45+
backend:
46+
serviceName: https
47+
48+
pingauthorize:
49+
gateway:
50+
hosts:
51+
- host: pingauthorize._defaultDomain_
52+
paths:
53+
- path: /
54+
pathType: PathPrefix
55+
backend:
56+
serviceName: https
57+
58+
pingdirectory:
59+
gateway:
60+
hosts:
61+
- host: pingdirectory._defaultDomain_
62+
paths:
63+
- path: /
64+
pathType: PathPrefix
65+
backend:
66+
serviceName: https
67+
68+
pingfederate-admin:
69+
gateway:
70+
hosts:
71+
- host: pingfederate-admin._defaultDomain_
72+
paths:
73+
- path: /
74+
pathType: PathPrefix
75+
backend:
76+
serviceName: https
77+
78+
pingfederate-engine:
79+
gateway:
80+
hosts:
81+
- host: pingfederate-engine._defaultDomain_
82+
paths:
83+
- path: /
84+
pathType: PathPrefix
85+
backend:
86+
serviceName: https

30-helm/gateway/gateway.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: gateway.networking.k8s.io/v1
2+
kind: Gateway
3+
metadata:
4+
name: ping-devops-gateway
5+
namespace: pinghelm
6+
spec:
7+
gatewayClassName: traefik
8+
listeners:
9+
- name: https
10+
protocol: HTTPS
11+
port: 8443
12+
hostname: "*.pingdemo.example"
13+
tls:
14+
mode: Terminate
15+
certificateRefs:
16+
- kind: Secret
17+
name: pingdemo-example-tls
18+
allowedRoutes:
19+
namespaces:
20+
from: Same
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Exposure override for local port-forward workflows.
2+
# Use with:
3+
# helm upgrade --install traefik traefik/traefik -n traefik --create-namespace \
4+
# -f sample/traefik-values.yaml -f sample/traefik-values-clusterip.yaml
5+
# Then expose locally:
6+
# kubectl -n traefik port-forward svc/traefik 8443:443
7+
# or (to keep hostname URLs on :443) sudo kubectl -n traefik port-forward svc/traefik 443:443
8+
9+
service:
10+
type: ClusterIP
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Exposure override for local clusters (Docker Desktop, kind, etc.).
2+
# Use with:
3+
# helm upgrade --install traefik traefik/traefik -n traefik --create-namespace \
4+
# -f sample/traefik-values.yaml -f sample/traefik-values-nodeport.yaml
5+
6+
service:
7+
type: NodePort
8+
9+
ports:
10+
web:
11+
nodePort: 30080
12+
websecure:
13+
nodePort: 30443
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Dev-only: skip upstream TLS verification so self-signed Ping certs work behind Traefik.
2+
# NOT FOR PRODUCTION USE.
3+
additionalArguments:
4+
- "--serversTransport.insecureSkipVerify=true"
5+
6+
providers:
7+
kubernetesGateway:
8+
enabled: true
9+
10+
ingressClass:
11+
enabled: true
12+
isDefaultClass: false
13+
name: traefik

0 commit comments

Comments
 (0)