-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcomplex-example.yaml
69 lines (69 loc) · 1.82 KB
/
complex-example.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
apiVersion: kappctrl.k14s.io/v1alpha1
kind: App
metadata:
name: kuard-kapp-gitops
spec:
serviceAccountName: default
fetch:
- git:
url: https://github.com/jeffgbutler/TCEWorkshop
ref: main
subPath: 90-Carvel/kapp-controller/config
- inline:
paths:
schema.yaml: |
#@data/values-schema
---
namespace: kuard-ns1
replicas: 2
deployment.yaml: |
#@ load("@ytt:data", "data")
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: kuard
name: kuard
namespace: #@ data.values.namespace
spec:
replicas: #@ data.values.replicas
selector:
matchLabels:
app: kuard
template:
metadata:
labels:
app: kuard
spec:
containers:
- image: gcr.io/kuar-demo/kuard-amd64:blue
name: kuard
namespace.yaml: |
#@ load("@ytt:data", "data")
apiVersion: v1
kind: Namespace
metadata:
name: #@ data.values.namespace
service.yaml: |
#@ load("@ytt:data", "data")
apiVersion: v1
kind: Service
metadata:
labels:
app: kuard
name: kuard
namespace: #@ data.values.namespace
spec:
ports:
- name: 8080-8080
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: kuard
type: ClusterIP
template:
- ytt: {}
- kbld: {}
deploy:
- kapp: {}