-
Notifications
You must be signed in to change notification settings - Fork 1
/
skaffold.yaml
171 lines (159 loc) · 7.31 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
---
apiVersion: skaffold/v4beta9
kind: Config
metadata:
name: fiftyone-teams
# Using configuration "modules" (dependency ordering [creation and deletion]).
# This avoid errors when deleting a CRD prior to all of its instances (which fail if the CRD doesn't exist).
requires:
- configs:
- mongodb
path: skaffold-mongodb.yaml
- configs:
- cert-manager
path: skaffold-cert-manager.yaml
- configs:
- license
path: skaffold-voxel51-license.yaml
# Profiles allow us to easily control which resources are created when we run skaffold.
# Cannot combine `--profile no-mongodb,no-cert-manager`.
# instead run `--profile only-fiftyone
profiles:
- name: no-mongodb
patches:
- op: remove
path: /requires/0
- name: no-cert-manager
patches:
- op: remove
path: /requires/1
- name: only-fiftyone
patches:
- op: remove
path: /requires/1
- op: remove
path: /requires/0
deploy:
helm:
releases:
- name: fiftyone-teams
chartPath: helm/fiftyone-teams-app
version: 2.2.0
createNamespace: true
namespace: fiftyone-teams
overrides:
# FiftyOne Teams API (teams-api)
apiSettings:
env:
LOGGING_LEVEL: DEBUG
FIFTYONE_ENV: development
image:
# See https://console.cloud.google.com/artifacts/docker/computer-vision-team/us-central1/dev-docker?project=computer-vision-team
repository: us-central1-docker.pkg.dev/computer-vision-team/dev-docker/fiftyone-teams-api
pullPolicy: IfNotPresent
tag: v2.3.0.dev35
# FiftyOne App (fiftyone-app) configurations
appSettings:
env:
# Only set to true during the initial installation or during a database upgrade
# FIFTYONE_DATABASE_ADMIN: false
FIFTYONE_DATABASE_ADMIN: true
# For local development without TLS certs, set `APP_USE_HTTPS=false` to
# prohibit the app from setting Redirect URL protocol to `https`.
# Must be set in both `appSettings.env` and `teamsAppSettings.env`.
# Can be true, when using cert-manager with self-signed certificates
# APP_USE_HTTPS: false
image:
# See https://console.cloud.google.com/artifacts/docker/computer-vision-team/us-central1/dev-docker?project=computer-vision-team
repository: us-central1-docker.pkg.dev/computer-vision-team/dev-docker/fiftyone-app
pullPolicy: IfNotPresent
tag: v2.3.0.dev34
# Central Authentication Service (teams-cas) configurations
casSettings:
env:
DEBUG: cas:*
image:
# See https://console.cloud.google.com/artifacts/docker/computer-vision-team/us-central1/dev-docker?project=computer-vision-team
repository: us-central1-docker.pkg.dev/computer-vision-team/dev-docker/fiftyone-teams-cas
pullPolicy: IfNotPresent
tag: v2.3.0-dev.34
# TODO: Test `minikube addons configure registry-creds` or
# When using minikube's addon registry-creds, we may also need to create the k8s secret `regcred`
# See https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
# imagePullSecrets:
# - name: regcred
ingress:
annotations:
# For using the nginx-ingress controller with cert-manager self signed certificates
cert-manager.io/cluster-issuer: selfsigned-issuer
# Configure nginx-ingress controller proxy buffers for the app
nginx.ingress.kubernetes.io/proxy-buffer-size: 256k
# Configure nginx-ingress controller proxy buffers for the app
nginx.ingress.kubernetes.io/proxy-buffers-number: "4"
# For using the nginx-ingress controller
className: nginx
paths:
- path: /_pymongo
pathType: Prefix
serviceName: teams-api
servicePort: 80
- path: /health
pathType: Prefix
serviceName: teams-api
servicePort: 80
- path: /graphql/v1
pathType: Prefix
serviceName: teams-api
servicePort: 80
- path: /file
pathType: Prefix
serviceName: teams-api
servicePort: 80
- path: /cas
pathType: Prefix
serviceName: teams-cas
servicePort: 80
# Note: the ordering matters. This root path must be last.
- path: /
pathType: Prefix
serviceName: teams-app
servicePort: 80
tlsEnabled: true
secret:
fiftyone:
fiftyoneDatabaseName: fiftyone-internal
# This password is randomly generated and is only used to initialize a local (ephemeral) MongoDB in `./skaffold-mongodb.yaml`
# URL encoded to overcome errors with unencoded characters
mongodbConnectionString: mongodb://root:3-9XjJ-gUV%3Fvp%5Ee%28WUk%3ELD%[email protected]/?authSource=admin # pragma: allowlist secret
# randomly generated value
cookieSecret: 5b32118032bfd50b64b3cc7c0e0821f4e84f63ad517a9687ac2b6ce6ab261976
# randomly generated value
encryptionKey: btv8BiFCaPIayWU3IU3a_Lm_EMIIk-t6H_yN1ORV45o=
# randomly generated value
fiftyoneAuthSecret: "aGM4?s&t-n;!*U96oA#bdo,+JU)ac1T7"
# FiftyOne Teams Plugins (teams-plugins) configurations. [Reference][fiftyone-plugins].
pluginsSettings:
image:
# See https://console.cloud.google.com/artifacts/docker/computer-vision-team/us-central1/dev-docker?project=computer-vision-team
repository: us-central1-docker.pkg.dev/computer-vision-team/dev-docker/fiftyone-app
pullPolicy: IfNotPresent
tag: v2.3.0.dev34
# FiftyOne Teams App (teams-app) configurations
teamsAppSettings:
dnsName: local.fiftyone.ai
# env:
# # For local development without TLS certs, set `APP_USE_HTTPS=false` to
# # prohibit the app from setting Redirect URL protocol to `https`.
# # Must be set in both `appSettings.env` and `teamsAppSettings.env`.
# # Can be true, when using cert-manager with self-signed certificates
# APP_USE_HTTPS: false
image:
# See https://console.cloud.google.com/artifacts/docker/computer-vision-team/us-central1/dev-docker?project=computer-vision-team
repository: us-central1-docker.pkg.dev/computer-vision-team/dev-docker/fiftyone-teams-app
# Note: the naming convention for the image `fiftyone-teams-app` differs from
# the other images (`fiftyone-app`, `fiftyone-app` and `fiftyone-teams-api`).
# The others are `vW.X.Y.devZ` (note `.devZ` vs `-dev.Z`).
# This is a byproduct of `npm` versioning versus Python PEP 440.
pullPolicy: IfNotPresent
tag: v2.3.0-dev.34
kubeContext: minikube