-
Notifications
You must be signed in to change notification settings - Fork 5
/
katacoda.yml
45 lines (37 loc) · 1.24 KB
/
katacoda.yml
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
#@ load("@ytt:data", "data")
#@ load("@ytt:overlay", "overlay")
#@ if data.values.katacoda:
#! Configure all Deployment resources to use master node
#! since kbld uses local Docker daemon to build images,
#! we will have to use single node (master) for running all Pods
#@overlay/match by=overlay.subset({"kind":"Deployment"}),expects="1+"
---
spec:
template:
spec:
#@overlay/match missing_ok=True
nodeSelector:
node-role.kubernetes.io/master: ""
#! Remove ImageDestinations as we do not want to docker login
#! in Katacoda environments to avoid using real credentials
#! in a temporary environment
#@ if data.values.push_images:
#@overlay/match by=overlay.subset({"kind":"ImageDestinations"})
#@overlay/remove
---
#@ end
#! Configure frontend Service to be exposed over a node port,
#! so that it could be visible through Katacoda port view.
#! Available under: "+"" button next to "Terminal Host 1" tab, then
#! click on "Select port to view on Host 1" and enter 30000
#@overlay/match by=overlay.subset({"kind":"Service","metadata":{"name":"frontend"}})
---
spec:
#@overlay/match missing_ok=True
type: NodePort
ports:
#@overlay/match by="port"
- port: #@ 80
#@overlay/match missing_ok=True
nodePort: 30000
#@ end