Skip to content

Commit 1349576

Browse files
authored
chore: upgrade geodesic base image version (#464)
* chore: upgrade geodesic base image version (#464) * chore: update geodesic to latest version. Update some env vars and scripts too. * fix: yq has new syntax * feat: use new gke auth plugin to silence warnings. * fix: update HPA API definition * fix: drop MAKE_INCLUDES changes, confusing make * chore: silence user output for IAM commands. * fix: update HPA metrics for v2beta2 API. * fix: only install plugin if it is enabled. Disabled by default as the plugin is recommended but not required. * chore: update version to 1.8.1
1 parent c121de4 commit 1349576

23 files changed

+161
-80
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If applicable, add screenshots to help explain your problem.
2626
**Ennvironment:**
2727

2828
- OS: [e.g. macOS, Ubuntu]
29-
- Kiosk version: [e.g. 1.8.0]
29+
- Kiosk version: [e.g. 1.8.1]
3030
- `kubectl version`:
3131
- `helm version`:
3232
- `helmfile version`:

Dockerfile

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
1-
FROM cloudposse/build-harness:0.39.0 as build-harness
1+
FROM cloudposse/build-harness:1.3.0 as build-harness
22

3-
FROM cloudposse/geodesic:0.135.0
3+
FROM cloudposse/geodesic:1.2.1-alpine
44

55
RUN apk add --update dialog libqrencode
66

77
ENV DOCKER_IMAGE="vanvalenlab/kiosk-console"
88
ENV DOCKER_TAG="latest"
99

10-
# Geodesic banner
10+
# Banner is what is displayed at startup and on every command line
11+
# in order to distinguish this image from other similar images
1112
ENV BANNER="deepcell"
1213
ENV BANNER_FONT="Larry 3D 2.flf"
1314

14-
# Disable cloudposse motd
15+
# Disable message of the day
1516
ENV MOTD_URL=""
1617

18+
# Shell customization
19+
# options for `less`. `R` allows ANSI color codes to be displayed while stripping out
20+
# other control codes that can cause `less` to mess up the screen formatting
21+
ENV LESS=R
22+
23+
# Enable `direnv`
24+
# TODO: Use preferring YAML configuration files instead.
25+
ENV DIRENV_ENABLED=true
26+
1727
# Silence make
1828
ENV MAKE="make -s"
1929

@@ -50,6 +60,9 @@ ENV GCP_TRAINING_GPU_TYPE="nvidia-tesla-v100"
5060
ENV GKE_MACHINE_TYPE="n1-standard-1"
5161
ENV GPU_MACHINE_TYPE="n1-highmem-2"
5262
ENV CONSUMER_MACHINE_TYPE="n1-standard-2"
63+
# gcp auth plugin is deprecated as of k8s 1.22, use the gke auth plugin instead
64+
# https://cloud.google.com/blog/products/containers-kubernetes/kubectl-auth-changes-in-gke
65+
ENV USE_GKE_GCLOUD_AUTH_PLUGIN="false"
5366

5467
# Deployment config
5568
ENV CLOUD_PROVIDER=""
@@ -78,4 +91,4 @@ COPY rootfs/ /
7891
# Enable the menu
7992
RUN ln -s /usr/local/bin/menu.sh /etc/profile.d/ΩΩ.menu.sh
8093

81-
WORKDIR /conf/
94+
ENV GEODESIC_WORKDIR=/conf

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Tracked Image
4949
Start a terminal shell and install the DeepCell Kiosk wrapper script:
5050

5151
```bash
52-
docker run -e DOCKER_TAG=1.8.0 vanvalenlab/kiosk-console:1.8.0 | sudo bash
52+
docker run -e DOCKER_TAG=1.8.1 vanvalenlab/kiosk-console:1.8.1 | sudo bash
5353
```
5454

5555
To start the kiosk, just run `kiosk-console` from the terminal shell.

conf/charts/frontend/templates/hpa.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{{- if (.Values.hpa.enabled) }}
22
---
3-
apiVersion: autoscaling/v2beta1
4-
kind: HorizontalPodAutoscaler
5-
apiVersion: autoscaling/v2beta1
3+
apiVersion: autoscaling/v2beta2
64
kind: HorizontalPodAutoscaler
75
metadata:
86
name: {{ template "fullname" . }}

conf/charts/redis-consumer/templates/hpa.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{{- if (.Values.hpa.enabled) }}
22
---
3-
apiVersion: autoscaling/v2beta1
4-
kind: HorizontalPodAutoscaler
5-
apiVersion: autoscaling/v2beta1
3+
apiVersion: autoscaling/v2beta2
64
kind: HorizontalPodAutoscaler
75
metadata:
86
name: {{ template "fullname" . }}

conf/charts/tf-serving/templates/hpa.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{{- if (.Values.hpa.enabled) }}
22
---
3-
apiVersion: autoscaling/v2beta1
4-
kind: HorizontalPodAutoscaler
5-
apiVersion: autoscaling/v2beta1
3+
apiVersion: autoscaling/v2beta2
64
kind: HorizontalPodAutoscaler
75
metadata:
86
name: {{ template "fullname" . }}

conf/helmfile.d/0230.segmentation-consumer.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,15 @@ releases:
5454
metrics:
5555
- type: Object
5656
object:
57-
metricName: segmentation_consumer_key_ratio
58-
target:
59-
apiVersion: v1
57+
describedObject:
6058
kind: Namespace
6159
name: segmentation_consumer_key_ratio
62-
targetValue: .15
60+
apiVersion: v1
61+
metric:
62+
name: segmentation_consumer_key_ratio
63+
target:
64+
type: Value
65+
value: .15
6366

6467
env:
6568
INTERVAL: 1

conf/helmfile.d/0231.segmentation-zip-consumer.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@ releases:
5454
metrics:
5555
- type: Object
5656
object:
57-
metricName: segmentation_zip_consumer_key_ratio
58-
target:
59-
apiVersion: v1
57+
describedObject:
6058
kind: Namespace
61-
name: segmentation_zip_consumer_key_ratio
62-
targetValue: 2
63-
59+
name: segmentation_consumer_key_ratio
60+
apiVersion: v1
61+
metric:
62+
name: segmentation_consumer_key_ratio
63+
target:
64+
type: Value
65+
value: .15
6466
env:
6567
QUEUE: "segmentation"
6668
CONSUMER_TYPE: "zip"

conf/helmfile.d/0250.caliban-consumer.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,15 @@ releases:
5454
metrics:
5555
- type: Object
5656
object:
57-
metricName: caliban_consumer_key_ratio
58-
target:
59-
apiVersion: v1
57+
describedObject:
6058
kind: Namespace
6159
name: caliban_consumer_key_ratio
62-
targetValue: 1
60+
apiVersion: v1
61+
metric:
62+
name: caliban_consumer_key_ratio
63+
target:
64+
type: Value
65+
value: 1
6366

6467
env:
6568
INTERVAL: 1

conf/helmfile.d/0251.caliban-zip-consumer.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,15 @@ releases:
5454
metrics:
5555
- type: Object
5656
object:
57-
metricName: caliban_zip_consumer_key_ratio
58-
target:
59-
apiVersion: v1
57+
describedObject:
6058
kind: Namespace
6159
name: caliban_zip_consumer_key_ratio
62-
targetValue: 2
60+
apiVersion: v1
61+
metric:
62+
name: caliban_zip_consumer_key_ratio
63+
target:
64+
type: Value
65+
value: 2
6366

6467
env:
6568
QUEUE: "caliban"

0 commit comments

Comments
 (0)