-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathskaffold.yaml
74 lines (74 loc) · 2.36 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
# Reference: https://skaffold.dev/docs/references/yaml/
apiVersion: skaffold/v2alpha1
kind: Config
metadata:
name: kf-apps-cd
build:
artifacts:
- image: gcr.io/kubeflow-releasing/update_kf_apps
# Set the context to the root directory.
# All paths in the Dockerfile should be relative to this one.
context: ..
# Automatically sync python files to the container. This should avoid
# the need to rebuild and redeploy when the files change.
# TODO(https://github.com/GoogleContainerTools/skaffold/issues/3448): We use manual sync
# because inferred sync doesn't work
#
# This only works if we autorestart the program on changes.
#
# Important: Make sure you current context has the namespace
# set to the namespace where your pods are deployed otherwise
# the sync doesn't appear to work.
sync:
manual:
# See https://skaffold.dev/docs/pipeline-stages/filesync/
# src is relative to context
# dest should be location inside the container where files should be placed
- src: 'py/**/*.py'
dest: '/app/src/kubeflow/testing'
kaniko:
dockerfile: ./apps-cd/Dockerfile
buildContext:
gcsBucket: kubeflow-releasing_skaffold
env:
# TODO(GoogleContainerTools/skaffold#3468) skaffold doesn't
# appear to work with workload identity
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /secret/user-gcp-sa.json
cache: {}
cluster:
pullSecretName: user-gcp-sa
resources:
requests:
cpu: 8
memory: 16Gi
profiles:
# Build on the kubeflow releasing cluster
- name: prod
build:
cluster:
# Build in a namespace with ISTIO sidecar injection disabled
# see GoogleContainerTools/skaffold#3442
namespace: kf-releasing
pullSecretName: user-gcp-sa
resources:
requests:
cpu: 8
memory: 16Gi
deploy:
kustomize:
path: pipelines/overlays/prod
- name: dev
build:
cluster:
# Build in a namespace with ISTIO sidecar injection disabled
# see GoogleContainerTools/skaffold#3442
namespace: kf-releasing-dev
pullSecretName: user-gcp-sa
resources:
requests:
cpu: 8
memory: 16Gi
deploy:
kustomize:
path: pipelines/overlays/dev