This repository has been 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
52 lines (51 loc) · 1.9 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
# Reference: https://skaffold.dev/docs/references/yaml/
apiVersion: skaffold/v2alpha1
kind: Config
metadata:
name: issue-embedding-microservice
build:
artifacts:
- image: gcr.io/issue-label-bot-dev/issue-embedding
# 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
#
# TODO(https://github.com/kubeflow/code-intelligence/issues/78):
# To use skaffold filesync
# I think we will need to use a custome program to autorestart the server on file changes
# because we can't run flask in debug mode and rely on its auto-loader..
# We created autorestart for that so we just have to use it.
#sync:
# manual:
# - src: 'py/code_intelligence/*.py'
# dest: '/'
# - src: 'Issue_Embeddings/flask_app/*.py'
# strip: 'Issue_Embeddings'
# dest: '/'
kaniko:
dockerfile: Issue_Embeddings/deployment/Dockerfile
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:
# pullSecret can be set to a local file from which the pull secret should be created.
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