forked from fission/fission
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathskaffold.yaml
54 lines (53 loc) · 1.87 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
####################################
# This file can be used with Skaffold (https://github.com/GoogleContainerTools/skaffold) to
# build and deploy Fission to Kubernetes cluster.
############## Usage ##############
# Skaffold CLI should be installed on your machine.
# Skaffold default-repo should be configured before using locally
# $ skaffold config set default-repo <YOUR_DOCKER_BASE_REPO>
# Run `TAG=1313 skaffold run` to build and deploy with helm - where replace value of tag to what you want to use as tag for image
# Run`skaffold build` to only build and push images
############## Future Improvement/Limitations ##############
# 1) [LOW] Add profiles to suit various deployment needs
####################################
apiVersion: skaffold/v2beta1
kind: Config
build:
artifacts:
- image: fission
context: .
docker:
dockerfile: cmd/fission-bundle/Dockerfile.fission-bundle
- image: fetcher
docker:
dockerfile: cmd/fetcher/Dockerfile.fission-fetcher
- image: preupgradechecks
docker:
dockerfile: cmd/preupgradechecks/Dockerfile.fission-preupgradechecks
tagPolicy:
envTemplate:
template: "{{.IMAGE_NAME}}:{{.TAG}}"
deploy:
helm:
releases:
- name: fission
chartPath: ./charts/fission-all
valuesFiles:
- ./charts/fission-all/values.yaml
namespace: "fission"
setValues:
namespace: fission
repository: index.docker.io
# The env template values only should go in setValueTemplates, all other overrides in setValues
setValueTemplates:
image: fission
preUpgradeChecksImage: preupgradechecks
fetcher.image: fetcher
fetcher.imageTag: "{{.TAG}}"
imageTag: "{{.TAG}}"
wait: true
recreatePods: false
packaged: null
imageStrategy:
fqn: null
helm: null