imxc / imxc-ui affinity 추가
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user