Skip to content
Snippets Groups Projects
Commit b33bdd59 authored by Manuel Esberger's avatar Manuel Esberger
Browse files

fix gateway path and add fix_idenity.sh script that patches the identity...

fix gateway path and add fix_idenity.sh script that patches the identity server to the quotas-policy
parent ecb63128
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ namespace: aris-dbrepo-dev
hostname: dbrepo.arisnet.ac.at
## @param gateway The gateway endpoint.
##
gateway: https://arisnet.ac.at
gateway: https://dbrepo.arisnet.ac.at
## @param strategyType The image pull
strategyType: RollingUpdate
## @param clusterDomain The cluster domain.
......
#!/bin/bash
# Define variables
NAMESPACE="aris-dbrepo-dev"
STATEFULSET_NAME="identity-service"
# Set resource limits and requests
oc patch statefulset $STATEFULSET_NAME -n $NAMESPACE --type='json' -p='[
{
"op": "add",
"path": "/spec/template/spec/containers/0/resources",
"value": {
"limits": {
"memory": "512Mi"
},
"requests": {
"cpu": "25m",
"memory": "256Mi"
}
}
},
{
"op": "add",
"path": "/spec/template/spec/initContainers/0/resources",
"value": {
"limits": {
"memory": "512Mi"
},
"requests": {
"cpu": "25m",
"memory": "256Mi"
}
}
},
{
"op": "add",
"path": "/spec/template/spec/initContainers/1/resources",
"value": {
"limits": {
"memory": "512Mi"
},
"requests": {
"cpu": "25m",
"memory": "256Mi"
}
}
}
]'
oc patch statefulset $STATEFULSET_NAME -n $NAMESPACE --type='json' -p='[
{
"op": "remove",
"path": "/spec/template/spec/securityContext/fsGroup"
},
{
"op": "remove",
"path": "/spec/template/spec/initContainers/0/securityContext/runAsUser"
},
{
"op": "remove",
"path": "/spec/template/spec/initContainers/1/securityContext/runAsUser"
},
{
"op": "remove",
"path": "/spec/template/spec/containers/0/securityContext/runAsUser"
}
]'
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment