imxc / imxc-ui affinity 추가

This commit is contained in:
ByeonJungHun
2023-11-09 17:30:57 +09:00
parent 5a00cd9ae4
commit fab5fb32c9
27 changed files with 173 additions and 15 deletions

View File

@@ -6,7 +6,7 @@
STATUS_CODE="$(curl -s -o /dev/null -w '%{http_code}' http://imxc-keycloak-http/auth/realms/exem)"
if [ $STATUS_CODE -eq 404 ]; then
TOKEN="$(curl -s -d "client_id=admin-cli" -d "username=admin" -d "password=cmoaA13!#" -d "grant_type=password" http://imxc-keycloak-http/auth/realms/master/protocol/openid-connect/token | jq -r '.access_token')"
TOKEN="$(curl -s -d "client_id=admin-cli" -d "username=admin" -d "password=admin" -d "grant_type=password" http://imxc-keycloak-http/auth/realms/master/protocol/openid-connect/token | jq -r '.access_token')"
echo $TOKEN

View File

@@ -33,6 +33,16 @@ spec:
labels:
app: imxc-ui
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: cmoa
operator: In
values:
- worker2
containers:
- name: imxc-ui
image: {{ .Values.global.IMXC_IN_REGISTRY }}/ui-server:{{ .Values.global.UI_SERVER_VERSION }}