Skip to content

Commit 5a53799

Browse files
author
Alan Christie
committed
feat: Changes to support deployment to k8s 1.30
1 parent 6c4ef8c commit 5a53799

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
lines changed

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,26 @@ To remove the operator (assuming there are no operator-derived instances)...
122122
The parameters used to deploy the operator to our 'official' cluster
123123
are held in this repository.
124124

125-
To deploy: -
125+
To deploy the operator itself run the main 'site' playbook with
126+
a suitable set of parameters: -
126127

127128
export KUBECONFIG=~/k8s-config/config-aws-im-main-eks
128129
export PARAMS=staging
129130
ansible-playbook -e @${PARAMS}-parameters.yaml site.yaml
130131

131-
> You will need the vault password, held in the company's KeePass under
132-
`data-manager-jupyter-operator -> Ansible Vault Password`
132+
Then, you must run the `site_dm` playbook to for each Data Manager
133+
you wish to configure: -
134+
135+
ansible-playbook -e @${PARAMS}-parameters.yaml \
136+
-e jo_dmapi_namespace=data-manager-api-dev \
137+
site_dm.yaml
138+
139+
ansible-playbook -e @${PARAMS}-parameters.yaml \
140+
-e jo_dmapi_namespace=data-manager-api-test \
141+
site_dm.yaml
142+
143+
This wil install the RBAC and configuration objects for Jupyter
144+
to the DM namespace.
133145

134146
# Data Manager Application Compliance
135147
In order to expose the CRD as an _Application_ in the Data Manager API service

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
ansible == 8.2.0
2+
kubernetes == 31.0.0
23
openshift == 0.13.1

roles/operator/templates/rbac.yaml.j2

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@ rules:
3434
- apiGroups: [networking.k8s.io]
3535
resources: [ingresses]
3636
verbs: [create]
37-
- apiGroups: ['policy']
38-
resources: ['podsecuritypolicies']
39-
verbs: ['use']
40-
resourceNames: ['{{ jo_sa_psp }}']
4137

4238
---
4339
kind: ClusterRoleBinding

xchem-nw-dev-parameters.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
3+
jo_image_tag: 31.0.0
4+
jo_dmapi_namespace: data-manager-api-dev
5+
6+
jo_ingress_domain: data-manager.xchem-dev.diamond.ac.uk
7+
jo_ingress_tls_secret: data-manager-api-tls
8+
jo_namespaces: data-manager-api-dev:data-manager-api-test
9+
jo_fallback_node_selector_key: informaticsmatters.com/purpose-core
10+
11+
jo_kubeconfig: "{{ lookup('env', 'KUBECONFIG') }}"

0 commit comments

Comments
 (0)