|
2 | 2 | # This is a YAML-formatted file. |
3 | 3 | # Declare variables to be passed into your templates. |
4 | 4 |
|
| 5 | +# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ |
| 6 | +replicaCount: 1 |
| 7 | + |
| 8 | +# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ |
| 9 | +image: |
| 10 | + repository: cogstacksystems/medcat-trainer |
| 11 | + # This sets the pull policy for images. |
| 12 | + pullPolicy: Always |
| 13 | + # Overrides the image tag whose default is the chart appVersion. |
| 14 | + tag: "latest" |
| 15 | +nginxImage: |
| 16 | + repository: nginx |
| 17 | + pullPolicy: IfNotPresent |
| 18 | + tag: "1.29.1" |
| 19 | + |
| 20 | +# Add any environment variables here that should be set in the medcat-trainer container |
5 | 21 | env: |
6 | 22 | CSRF_TRUSTED_ORIGINS: "http://localhost:8000" |
7 | 23 | DB_ENGINE: "sqlite3" |
@@ -53,17 +69,22 @@ medcatConfig: | |
53 | 69 | # use this spacy model |
54 | 70 | cat.general.spacy_model = 'en_core_web_md' |
55 | 71 |
|
56 | | -
|
57 | | -# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/ |
58 | | -replicaCount: 1 |
59 | | - |
60 | | -# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/ |
61 | | -image: |
62 | | - repository: nginx |
63 | | - # This sets the pull policy for images. |
64 | | - pullPolicy: IfNotPresent |
65 | | - # Overrides the image tag whose default is the chart appVersion. |
66 | | - tag: "" |
| 72 | +solr: |
| 73 | + # replicaCount: 1 |
| 74 | + # collectionShards: 1 |
| 75 | + # collectionReplicas: 1 |
| 76 | + zookeeper: |
| 77 | + # replicaCount: 1 |
| 78 | + persistence: |
| 79 | + size: 1Gi |
| 80 | + persistence: |
| 81 | + size: 1Gi |
| 82 | + auth: |
| 83 | + # TODO: support SOLR auth from medcat trainer API |
| 84 | + enabled: false |
| 85 | + podLabels: |
| 86 | + app.kubernetes.io/component: solr |
| 87 | + app.kubernetes.io/part-of: cogstack |
67 | 88 |
|
68 | 89 | # This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ |
69 | 90 | imagePullSecrets: [] |
@@ -106,7 +127,7 @@ service: |
106 | 127 | # This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types |
107 | 128 | type: ClusterIP |
108 | 129 | # This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports |
109 | | - port: 80 |
| 130 | + port: 8000 |
110 | 131 |
|
111 | 132 | # This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/ |
112 | 133 | ingress: |
@@ -138,14 +159,15 @@ resources: {} |
138 | 159 | # memory: 128Mi |
139 | 160 |
|
140 | 161 | # This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ |
141 | | -livenessProbe: |
142 | | - httpGet: |
143 | | - path: / |
144 | | - port: http |
145 | | -readinessProbe: |
146 | | - httpGet: |
147 | | - path: / |
148 | | - port: http |
| 162 | +# TODO Add liveness and readiness to django app |
| 163 | +# livenessProbe: |
| 164 | +# httpGet: |
| 165 | +# path: / |
| 166 | +# port: http |
| 167 | +# readinessProbe: |
| 168 | +# httpGet: |
| 169 | +# path: / |
| 170 | +# port: http |
149 | 171 |
|
150 | 172 | # This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/ |
151 | 173 | autoscaling: |
@@ -173,15 +195,3 @@ nodeSelector: {} |
173 | 195 | tolerations: [] |
174 | 196 |
|
175 | 197 | affinity: {} |
176 | | - |
177 | | -solr: |
178 | | - # replicaCount: 1 |
179 | | - # collectionShards: 1 |
180 | | - # collectionReplicas: 1 |
181 | | - # zookeeper: |
182 | | - # replicaCount: 1 |
183 | | - persistence: |
184 | | - size: 1Gi |
185 | | - auth: |
186 | | - # TODO: support SOLR auth from medcat trainer API |
187 | | - enabled: false |
|
0 commit comments