-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s-resources.yaml
84 lines (84 loc) · 1.49 KB
/
k8s-resources.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: default
spec:
mtls:
mode: STRICT
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: motd-deployment
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: motd-service
version: v1
template:
metadata:
labels:
app: motd-service
version: v1
name: motd-service
spec:
containers:
- image: ghcr.io/tobias-neubert/motd-service:57a28cb-49@sha256:beeface8c23145407a8721be22d17f0710b6305e97f4e186f47a8e14f6f267d4
imagePullPolicy: IfNotPresent
name: motd-service
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
labels:
app: motd-service
name: motd-service
namespace: default
spec:
ports:
- name: http
port: 8080
selector:
app: motd-service
type: ClusterIP
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: training-gateway
spec:
selector:
istio: ingressgateway
servers:
- hosts:
- motd.neubert
port:
name: https
number: 443
protocol: HTTPS
tls:
credentialName: training-credential
mode: SIMPLE
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: motd
spec:
gateways:
- training-gateway
hosts:
- motd.neubert
http:
- match:
- uri:
prefix: /motd
route:
- destination:
host: motd-service
port:
number: 8080