This repository was archived by the owner on Jan 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathskaffold.yaml
65 lines (64 loc) · 2.22 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
# Reference: https://skaffold.dev/docs/references/yaml/
apiVersion: skaffold/v2alpha1
kind: Config
metadata:
name: label-microservice
build:
artifacts:
- image: gcr.io/issue-label-bot-dev/bot-worker
# 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:
- src: 'py/code_intelligence/*.py'
dest: '/'
- src: 'py/label_microservice/*.py'
dest: '/'
kaniko:
dockerfile: Label_Microservice/deployment/Dockerfile.worker
buildContext:
gcsBucket: issue-label-bot-dev_skaffold-kaniko
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: {}
- image: gcr.io/issue-label-bot-dev/labelbot-diff
# Set the context to the go directory
# All paths in the dockerfile should be relative to this
context: ./go
kaniko:
# Relative to context
dockerfile: Dockerfile.automl
buildContext:
gcsBucket: issue-label-bot-dev_skaffold-kaniko
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
# Build in the kaniko namespace because we need to disable ISTIO sidecar injection
# see GoogleContainerTools/skaffold#3442
namespace: kaniko
resources:
requests:
cpu: 8
memory: 16Gi
deploy:
kustomize:
path: deployment/overlays/dev