Skip to content

Commit

Permalink
Merge branch 'main' into T329210
Browse files Browse the repository at this point in the history
  • Loading branch information
vivian-rook authored May 6, 2024
2 parents 8d31f4a + a0b4f5e commit a96b519
Show file tree
Hide file tree
Showing 21 changed files with 48 additions and 340 deletions.
Binary file modified ansible/files/csi-secret-cinderplugin.yaml.codfw1dev.crypt
Binary file not shown.
Binary file modified ansible/files/csi-secret-cinderplugin.yaml.eqiad1.crypt
Binary file not shown.
15 changes: 0 additions & 15 deletions ansible/files/prometheus-data.sh

This file was deleted.

263 changes: 0 additions & 263 deletions ansible/files/psp.yaml.j2

This file was deleted.

13 changes: 3 additions & 10 deletions ansible/paws.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
name: metrics
kind: Namespace
state: present
register: prometheus

- name: Prometheus
kubernetes.core.helm:
Expand All @@ -85,17 +84,16 @@
chart_version: 25.11.0
release_namespace: metrics
create_namespace: true
set_values:
- value: prometheus.retention=30d
value_type: string

- name: Ingress for prometheus
kubernetes.core.k8s:
state: present
template: "templates/prometheus-ingress.yaml.j2"
namespace: metrics

- name: Pull in previous prometheus data
ansible.builtin.script: files/prometheus-data.sh
when: prometheus.changed

- name: Add jupyterhub chart repo
kubernetes.core.helm_repository:
name: jupyterhub
Expand All @@ -112,8 +110,3 @@
- ../paws/{{ env_file }}.yaml
timeout: '50m'
dependency_update: true

- name: and psp.yaml
kubernetes.core.k8s:
state: present
definition: "{{ lookup('template', 'files/psp.yaml.j2') }}"
4 changes: 0 additions & 4 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ fi

source secrets-${datacenter}.sh

# save current kube.config in case we need to transfer prometheus data
cp $(pwd)/tofu/kube.config /tmp/kube.config.previous || true # if it isn't there just keep going

python3 -m venv .venv/deploy
source .venv/deploy/bin/activate
pip install ansible==8.1.0 kubernetes==26.1.0
Expand All @@ -54,7 +51,6 @@ cd tofu
AWS_ACCESS_KEY_ID=${ACCESS_KEY} AWS_SECRET_ACCESS_KEY=${SECRET_KEY} tofu init -backend-config=${datacenter}-backend.conf
AWS_ACCESS_KEY_ID=${ACCESS_KEY} AWS_SECRET_ACCESS_KEY=${SECRET_KEY} tofu apply -var datacenter=${datacenter}
export KUBECONFIG=$(pwd)/kube.config
cp $(pwd)/kube.config /tmp/kube.config.current

if [ "${tofuonly}" = '1' ]
then
Expand Down
2 changes: 1 addition & 1 deletion images/minesweeper/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ charset-normalizer==3.2.0
# via requests
google-auth==2.22.0
# via kubernetes
idna==3.4
idna==3.7
# via requests
kubernetes==27.2.0
# via -r requirements.in
Expand Down
2 changes: 1 addition & 1 deletion images/nbserve/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

ARG RESTY_VERSION="1.17.8.2"
ARG RESTY_VERSION="1.25.3.1"
ARG RESTY_J="1"
# ARG RESTY_OPENSSL_VERSION="1.1.1d"
ARG RESTY_CONFIG_OPTIONS="\
Expand Down
2 changes: 1 addition & 1 deletion images/nbserve/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
This container is used for managing the public.paws.wmcloud.org and paws-public.wmflabs.org traffic. So public viewing of notebooks and files.
This container is used for managing the public-paws.wmcloud.org traffic. So public viewing of notebooks and files.

It also redirects files to the renderer container to be built. Also for public viewing.
2 changes: 1 addition & 1 deletion images/paws-hub/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM jupyterhub/k8s-hub:3.1.0
FROM jupyterhub/k8s-hub:3.3.3
ARG NB_USER=tools.paws
ARG NB_UID=52771
ARG HOME=/home/paws
Expand Down
Loading

0 comments on commit a96b519

Please sign in to comment.