forked from fission/fission
-
Notifications
You must be signed in to change notification settings - Fork 0
/
skaffold.yaml
175 lines (175 loc) · 5.85 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
####################################
# This file can be used with Skaffold (https://github.com/GoogleContainerTools/skaffold) to
# build and deploy Fission to Kubernetes cluster.
# Skaffold version v2.0.3 is used for this configuration.
############## Usage ##############
# Skaffold CLI should be installed on your machine.
# For building & deploying to Cloud Provider
# $ skaffold config set default-repo vishalbiyani (vishalbiyani - should be your registry/Dockerhub handle)
# $ `skaffold run`
# For building & deploying to Kind cluster use Kind profile
# $ `skaffold run -p kind`
####################################
apiVersion: skaffold/v4beta1
kind: Config
build:
artifacts:
- image: fission-bundle
context: dist/fission-bundle_linux_amd64_v1
- image: fetcher
context: dist/fetcher_linux_amd64_v1
- image: pre-upgrade-checks
context: dist/pre-upgrade-checks_linux_amd64_v1
- image: reporter
context: dist/reporter_linux_amd64_v1
manifests:
helm:
flags:
install:
- --timeout=3m
- --debug
- --dependency-update
upgrade:
- --timeout=3m
- --install
- --debug
releases:
- name: fission
chartPath: ./charts/fission-all
valuesFiles:
- ./charts/fission-all/values.yaml
namespace: fission
setValues:
analytics: "false"
builderPodSpec.enabled: "false"
canaryDeployment.enabled: "false"
debugEnv: "false"
fetcher.imageTag: ""
grafana.dashboards.enabled: "false"
imageTag: ""
influxdb.enabled: "false"
namespace: fission
builderNamespace: ""
functionNamespace: ""
openTelemetry.otlpCollectorEndpoint: ""
openTelemetry.otlpInsecure: "true"
podMonitor.additionalPodMonitorLabels.release: prometheus
podMonitor.enabled: "false"
podMonitor.namespace: monitoring
pprof.enabled: "false"
preUpgradeChecks.imageTag: ""
priorityClassName: system-cluster-critical
prometheus.serviceEndpoint: ""
repository: ghcr.io
routerServiceType: LoadBalancer
runtimePodSpec.enabled: "false"
serviceMonitor.additionalServiceMonitorLabels.release: prometheus
serviceMonitor.enabled: "false"
serviceMonitor.namespace: monitoring
storagesvc.archivePruner.enabled: "true"
storagesvc.archivePruner.interval: "60"
terminationMessagePath: /var/log/termination-log
terminationMessagePolicy: FallbackToLogsOnError
setValueTemplates:
fetcher.image: '{{.IMAGE_FULLY_QUALIFIED_fetcher}}'
image: '{{.IMAGE_FULLY_QUALIFIED_fission_bundle}}'
postInstallReportImage: '{{.IMAGE_FULLY_QUALIFIED_reporter}}'
preUpgradeChecks.image: '{{.IMAGE_FULLY_QUALIFIED_pre_upgrade_checks}}'
wait: true
deploy:
helm: {}
profiles:
- name: kind
patches:
- op: replace
path: /manifests/helm/releases/0/setValues/repository
value: ""
- op: replace
path: /manifests/helm/releases/0/setValues/routerServiceType
value: NodePort
- name: kind-debug
patches:
- op: replace
path: /manifests/helm/releases/0/setValues/repository
value: ""
- op: replace
path: /manifests/helm/releases/0/setValues/routerServiceType
value: NodePort
- op: replace
path: /manifests/helm/releases/0/setValues/debugEnv
value: true
- op: replace
path: /manifests/helm/releases/0/setValues/pprof.enabled
value: true
- name: kind-ci
patches:
- op: replace
path: /manifests/helm/releases/0/setValues/repository
value: ""
- op: replace
path: /manifests/helm/releases/0/setValues/storagesvc.archivePruner.interval
value: 1
- op: replace
path: /manifests/helm/releases/0/setValues/routerServiceType
value: NodePort
- op: replace
path: /manifests/helm/releases/0/setValues/canaryDeployment.enabled
value: true
- op: replace
path: /manifests/helm/releases/0/setValues/prometheus.serviceEndpoint
value: http://prometheus-operated.monitoring.svc.cluster.local:9090
- op: replace
path: /manifests/helm/releases/0/setValues/podMonitor.enabled
value: true
- op: replace
path: /manifests/helm/releases/0/setValues/serviceMonitor.enabled
value: true
- op: replace
path: /manifests/helm/releases/0/setValues/grafana.dashboards.enabled
value: true
- name: kind-ci-old
patches:
- op: replace
path: /manifests/helm/releases/0/setValues/repository
value: ""
- op: replace
path: /manifests/helm/releases/0/setValues/storagesvc.archivePruner.interval
value: 1
- op: replace
path: /manifests/helm/releases/0/setValues/routerServiceType
value: NodePort
- op: replace
path: /manifests/helm/releases/0/setValues/canaryDeployment.enabled
value: true
- op: replace
path: /manifests/helm/releases/0/setValues/prometheus.serviceEndpoint
value: http://prometheus-operated.monitoring.svc.cluster.local:9090
- op: replace
path: /manifests/helm/releases/0/setValues/podMonitor.enabled
value: true
- op: replace
path: /manifests/helm/releases/0/setValues/serviceMonitor.enabled
value: true
- op: replace
path: /manifests/helm/releases/0/setValues/grafana.dashboards.enabled
value: true
- op: replace
path: /manifests/helm/releases/0/setValues/builderNamespace
value: fission-builder
- op: replace
path: /manifests/helm/releases/0/setValues/functionNamespace
value: fission-function
- name: kind-opentelemetry
patches:
- op: replace
path: /manifests/helm/releases/0/setValues/repository
value: ""
- op: replace
path: /manifests/helm/releases/0/setValues/routerServiceType
value: NodePort
- op: replace
path: /manifests/helm/releases/0/setValues/pprof.enabled
value: true
- op: replace
path: /manifests/helm/releases/0/setValues/openTelemetry.otlpCollectorEndpoint
value: otel-collector.opentelemetry-operator-system.svc:4317