-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskaffold.yaml
57 lines (57 loc) · 1.18 KB
/
skaffold.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
---
apiVersion: skaffold/v4beta6
kind: Config
metadata:
name: infrago
labels:
app: infrago
profiles:
#
# Run and port-forward the application to http://127.0.0.1:3000
#
- name: demo
activation:
- env: ENV=demo
requiresAllActivations: false
portForward:
- resourceType: service
resourceName: infrago
namespace: default
port: 80
localPort: 3000
deploy:
kubectl: {}
manifests:
rawYaml:
- k8s/dev/*.yaml
#
# Deploy the application in production mode (includes Affinity and Anti-Affinity)
#
- name: production
activation:
- env: ENV=production
requiresAllActivations: true
deploy:
kubectl: {}
manifests:
rawYaml:
- k8s/production/*.yaml
#
# Build, run and watch for changes in application code
#
- name: dev
activation:
- env: ENV=development
requiresAllActivations: false
build:
artifacts:
- image: docker.io/moatorres/infrago
sync:
infer: ['go.mod', 'main.go', './modules']
tagPolicy:
sha256: {}
deploy:
kubectl: {}
manifests:
rawYaml:
- k8s/dev/*.yaml