forked from fission/fission
-
Notifications
You must be signed in to change notification settings - Fork 1
/
skaffold.yaml
57 lines (56 loc) · 1.92 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
####################################
# 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.
# Change <DOCKERHUB_REPO> -> to your Dockerhub username
# Run `skaffold run` to build and deploy with helm.
# Run`skaffold build` to only build and push images
############## Current Limitations ##############
# 1) You can not refer to dynamically generated tag from build section in Helm values
# - hence you have to use "latest" tag
############### Possible enhancements ##############
# 1) Add profiles to suit various deployment needs
####################################
apiVersion: skaffold/v1beta9
kind: Config
build:
artifacts:
- image: <DOCKERHUB_REPO>/fission
context: .
docker:
dockerfile: cmd/fission-bundle/Dockerfile.fission-bundle
- image: <DOCKERHUB_REPO>/fetcher
docker:
dockerfile: cmd/fetcher/Dockerfile.fission-fetcher
- image: <DOCKERHUB_REPO>/preupgradechecks
docker:
dockerfile: cmd/preupgradechecks/Dockerfile.fission-preupgradechecks
tagPolicy:
envTemplate:
template: "{{.IMAGE_NAME}}:skaffold-test"
deploy:
helm:
releases:
- name: fission
chartPath: ./charts/fission-all
valuesFiles:
- ./charts/fission-all/values.yaml
namespace: "fission"
setValues:
image: <DOCKERHUB_REPO>/fission
imageTag: skaffold-test
fetcherImage: <DOCKERHUB_REPO>/fetcher
fetcherImageTag: skaffold-test
namespace: fission
preUpgradeChecksImage: <DOCKERHUB_REPO>/preupgradechecks
repository: index.docker.io
setValueTemplates: {}
wait: true
recreatePods: false
overrides: {}
packaged: null
imageStrategy:
fqn: null
helm: null