-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathkapp.yaml
82 lines (76 loc) · 1.91 KB
/
kapp.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
package:
name: kapp
version: 0.64.0
epoch: 6
description: kapp is a simple deployment tool focused on the concept of "Kubernetes application" — a set of resources with the same label
copyright:
- license: Apache-2.0
pipeline:
- uses: git-checkout
with:
expected-commit: 00589a495fde4495c28a25041ac9c7b06fb160b6
repository: https://github.com/carvel-dev/kapp
tag: v${{package.version}}
- uses: go/bump
with:
deps: |-
k8s.io/kubernetes@v1.31.6
golang.org/x/oauth2@v0.27.0
golang.org/x/net@v0.36.0
- uses: go/build
with:
packages: ./cmd/kapp
output: kapp
ldflags: -X carvel.dev/kapp/pkg/kapp/version.Version=v${{package.version}}
- uses: strip
update:
enabled: true
github:
identifier: carvel-dev/kapp
strip-prefix: v
test:
pipeline:
- name: version check
runs: |
kapp version | grep ${{package.version}}
kapp --help
- uses: test/kwok/cluster
- name: demo application
runs: |
cat <<'EOF' > app.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: cgr.dev/chainguard/nginx:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: nginx-service
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 80
selector:
app: nginx
EOF
kapp --yes deploy --app simple-app --file app.yaml
kapp list
kapp inspect --app simple-app --tree