forked from vszal/pop-kustomize
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathskaffold.yaml-pre-tf-ex
74 lines (68 loc) · 1.63 KB
/
skaffold.yaml-pre-tf-ex
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
apiVersion: skaffold/v4beta5
kind: Config
metadata:
name: pop-stats
build:
# Uncomment if you're using minikube for loca dev and don't want to push to Artifact Registry
# local:
# push: false
artifacts:
- image: pop-stats
context: app
docker:
dockerfile: Dockerfile
manifests:
kustomize:
paths:
- k8s/overlays/dev
portForward:
- resourceType: deployment
resourceName: pop-stats
port: 8080
localPort: 8080
profiles:
- name: test
manifests:
kustomize:
paths:
- k8s/overlays/test
- name: staging
customActions:
- name: predeploy-action
containers:
- name: predeploy-echo
image: ubuntu
command: ["/bin/sh"]
args: ["-c", 'echo "this is a predeploy action"' ]
manifests:
kustomize:
paths:
- k8s/overlays/staging
verify:
#Call Healthcheck on Staging Target URL
- name: staging-healthcheck
container:
name: alpine
image: alpine
command: ["bin/sh"]
args: ["-c", "wget http://34.71.242.3:8080/h"]
- name: prod
manifests:
kustomize:
paths:
- k8s/overlays/prod
verify:
#Call Healthcheck on Prod Target URL
- name: pro-healthcheck
container:
name: alpine-health
image: alpine
command: ["bin/sh"]
args: ["-c", "wget http://104.154.222.255:8080/h"]
#Call Loadgen on Prod Target URL
- name: prod-loadgen
container:
name: alpine-load
image: alpine
command: ["bin/sh"]
args: ["-c", "wget http://104.154.222.255:8080/load"]