release 3.5.0
This commit is contained in:
@@ -1,36 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: manual
|
||||
namespace: imxc
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: manual
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: manual
|
||||
spec:
|
||||
containers:
|
||||
- name: manual
|
||||
image: {{ .Values.global.IMXC_IN_REGISTRY }}/manual:{{ .Values.global.CMOA_MANUAL_VERSION }}
|
||||
imagePullPolicy: IfNotPresent
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: manual
|
||||
namespace: imxc
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: manual
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8088
|
||||
targetPort: 3000
|
||||
nodePort: {{ .Values.global.CMOA_MANUAL_PORT }}
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: imxc-ui-config-jaeger
|
||||
namespace: imxc
|
||||
data:
|
||||
properties.file: |
|
||||
api.url = {{ .Values.global.SERVELET_URL_PROTOCOL }}://{{ .Values.global.ZUUL_SERVER_IP }}:{{ .Values.global.ZUUL_SERVER_PORT }}
|
||||
config.js: |
|
||||
window.appEnv = {
|
||||
// Env Settings servletURL
|
||||
offlineAccess: "{{ .Values.global.OFFLINEACCESS }}",
|
||||
backLogin: "{{ .Values.global.BACKLOGIN }}",
|
||||
servletURL: "{{ .Values.global.SERVELET_URL_PROTOCOL }}://{{ .Values.global.ZUUL_SERVER_IP }}:{{ .Values.global.ZUUL_SERVER_PORT }}",
|
||||
demoServletURL: "{{ .Values.global.DEMO_SERVELET_URL_PROTOCOL }}://{{ .Values.global.ZUUL_SERVER_IP }}:{{ .Values.global.ZUUL_SERVER_PORT }}",
|
||||
// Env Settings socketURL
|
||||
socketURL: "http://{{ .Values.global.NOTI_SERVER_IP }}:{{ .Values.global.NOTI_SERVER_PORT }}/ui-server-websocket",
|
||||
manualURL: "http://{{ .Values.global.CMOA_MANUAL_SERVER_IP }}:{{ .Values.global.CMOA_MANUAL_PORT }}",
|
||||
// Env Settings interMaxURL
|
||||
interMaxURL: "http://{{ .Values.global.INTERMAX_IP }}:8080/intermax/?",
|
||||
// Env Settings CloudMOA Version
|
||||
version: '{{ .Values.global.CLOUDMOA_UI_VERSION }}',
|
||||
UI_build_ver: '{{ .Values.global.UI_SERVER_VERSION }}',
|
||||
maxSelectionSize: 30,
|
||||
loginType: 'keycloak',
|
||||
keyCloak: {
|
||||
"realm": "{{ .Values.global.KEYCLOAK_REALM }}",
|
||||
"auth-server-url": "{{ .Values.global.KEYCLOAK_AUTH_SERVER_URL }}",
|
||||
"ssl-required": "none",
|
||||
"resource": "{{ .Values.global.KEYCLOAK_RESOURCE }}",
|
||||
"public-client": true,
|
||||
"confidential-port": 0
|
||||
},
|
||||
healthIndicatorStateInfo: [
|
||||
{
|
||||
state: "critical",
|
||||
// max: 1.0,
|
||||
// over: 0.8,
|
||||
max: 100,
|
||||
over: 80,
|
||||
text: "Critical",
|
||||
color: "#ff4040",
|
||||
level: 4,
|
||||
}, {
|
||||
state: "warning",
|
||||
// max: 0.8,
|
||||
// over: 0.5,
|
||||
max: 80,
|
||||
over: 50,
|
||||
text: "Warning",
|
||||
color: "#ffa733",
|
||||
level: 3,
|
||||
}, {
|
||||
state: "attention",
|
||||
// max: 0.5,
|
||||
// over: 0.0,
|
||||
max: 50,
|
||||
over: 0,
|
||||
text: "Attention",
|
||||
// color: "#B4B83D",
|
||||
color: "#1cbe85",
|
||||
level: 2,
|
||||
}, {
|
||||
state: "normal",
|
||||
max: 0,
|
||||
over: 0,
|
||||
text: "Normal",
|
||||
// color: "#64B87D",
|
||||
color: "#24b0ed",
|
||||
level: 1,
|
||||
},
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: imxc-ui-service-jaeger
|
||||
namespace: imxc
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
app: imxc-ui-jaeger
|
||||
ports:
|
||||
- protocol: TCP
|
||||
name: ui
|
||||
port: 80
|
||||
targetPort: 9999
|
||||
nodePort: 31084
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: imxc-ui-jaeger
|
||||
namespace: imxc
|
||||
labels:
|
||||
app: imxc-ui
|
||||
spec:
|
||||
revisionHistoryLimit: 0
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: imxc-ui-jaeger
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: imxc-ui-jaeger
|
||||
spec:
|
||||
containers:
|
||||
- name: imxc-ui-jaeger
|
||||
image: {{ .Values.global.IMXC_IN_REGISTRY }}/ui-server:{{ .Values.global.UI_SERVER_VERSION }}
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 50Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 100Mi
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- name: config-profile
|
||||
mountPath: /usr/src/app/web/env
|
||||
- name: config-server
|
||||
mountPath: /usr/src/app/config
|
||||
volumes:
|
||||
- name: config-profile
|
||||
configMap:
|
||||
name: imxc-ui-config-jaeger
|
||||
items:
|
||||
- key: "config.js"
|
||||
path: "config.js"
|
||||
- name: config-server
|
||||
configMap:
|
||||
name: imxc-ui-config-jaeger
|
||||
@@ -1,94 +0,0 @@
|
||||
# Default values for imxc.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare variables to be passed into your templates.
|
||||
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: 10.10.31.243:5000/cmoa3/nginx
|
||||
tag: stable
|
||||
pullPolicy: IfNotPresent
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
fullnameOverride: ""
|
||||
|
||||
serviceAccount:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
# The name of the service account to use.
|
||||
# If not set and create is true, a name is generated using the fullname template
|
||||
name:
|
||||
|
||||
podSecurityContext: {}
|
||||
# fsGroup: 2000
|
||||
|
||||
securityContext: {}
|
||||
# capabilities:
|
||||
# drop:
|
||||
# - ALL
|
||||
# readOnlyRootFilesystem: true
|
||||
# runAsNonRoot: true
|
||||
# runAsUser: 1000
|
||||
|
||||
service:
|
||||
type: ClusterIP
|
||||
port: 80
|
||||
|
||||
ingress:
|
||||
enabled: false
|
||||
annotations: {}
|
||||
# kubernetes.io/ingress.class: nginx
|
||||
# kubernetes.io/tls-acme: "true"
|
||||
hosts:
|
||||
- host: chart-example.local
|
||||
paths: []
|
||||
|
||||
tls: []
|
||||
# - secretName: chart-example-tls
|
||||
# hosts:
|
||||
# - chart-example.local
|
||||
|
||||
resources: {}
|
||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||
# choice for the user. This also increases chances charts run on environments with little
|
||||
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
||||
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
||||
# limits:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
# requests:
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
|
||||
nodeSelector: {}
|
||||
|
||||
tolerations: []
|
||||
|
||||
affinity: {}
|
||||
|
||||
global:
|
||||
INTERMAX_IP:
|
||||
SERVELET_URL_PROTOCOL : http
|
||||
DEMO_SERVELET_URL_PROTOCOL : http
|
||||
KEYCLOAK_AUTH_SERVER_URL: http://111.111.111.111:31082/auth
|
||||
KEYCLOAK_RESOURCE: authorization_server
|
||||
KEYCLOAK_REALM: exem
|
||||
|
||||
IMXC_IN_REGISTRY: 10.10.31.243:5000/cmoa3
|
||||
|
||||
ZUUL_SERVER_IP: 111.111.111.111
|
||||
ZUUL_SERVER_PORT: 31081
|
||||
|
||||
NOTI_SERVER_IP: 111.111.111.111
|
||||
NOTI_SERVER_PORT: 31083
|
||||
|
||||
CMOA_MANUAL_SERVER_IP: 111.111.111.111
|
||||
CMOA_MANUAL_PORT: 31090
|
||||
|
||||
OFFLINEACCESS: false
|
||||
BACKLOGIN: false
|
||||
|
||||
CLOUDMOA_VERSION: rel0.0.0
|
||||
UI_SERVER_VERSION: rel0.0.0
|
||||
CMOA_MANUAL_VERSION: rel0.0.0
|
||||
@@ -1,5 +0,0 @@
|
||||
apiVersion: v1
|
||||
appVersion: "1.0"
|
||||
description: A Helm chart for Kubernetes
|
||||
name: imxc
|
||||
version: 0.1.0
|
||||
@@ -1,16 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
STATUS_CODE="$(curl -s -o /dev/null -w '%{http_code}' http://imxc-keycloak-http/auth/realms/exem)"
|
||||
|
||||
if [ $STATUS_CODE -eq 200 ]; then
|
||||
JWT_KEY="$(curl -s -XGET http://imxc-keycloak-http/auth/realms/exem | jq -r '.public_key')"
|
||||
export JWT_KEY
|
||||
|
||||
chmod -R 777 /home/cloudmoa/notification/cloudmoa_alert.log
|
||||
|
||||
java -Djava.security.egd=file:/dev/./urandom -jar /app.jar
|
||||
elif [ $STATUS_CODE -eq 404 ]; then
|
||||
echo "not found exem relam. check realm in imxc-keycloak"
|
||||
else
|
||||
echo "not found keycloak. check to install keycloak"
|
||||
fi
|
||||
@@ -1,36 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
# 200 -> 서버 및 realm이 있는 경우
|
||||
# 404 -> 서버는 있으나 realm이 없는 경우
|
||||
# 000 -> 서버가 없음
|
||||
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=admin" -d "grant_type=password" http://imxc-keycloak-http/auth/realms/master/protocol/openid-connect/token | jq -r '.access_token')"
|
||||
|
||||
echo $TOKEN
|
||||
|
||||
echo "create realm and client"
|
||||
# create realm and client
|
||||
curl -s -v POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d "@/tmp/init.json" http://imxc-keycloak-http/auth/admin/realms
|
||||
|
||||
|
||||
echo "create admin and owner"
|
||||
# create admin and owner
|
||||
curl -s -v POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"firstName":"","lastName":"", "username":"admin","email":"admin@example.com", "enabled":"true","credentials":[{"type":"password","value":"admin","temporary":false}]}' http://imxc-keycloak-http/auth/admin/realms/exem/users
|
||||
curl -s -v POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" -d '{"firstName":"","lastName":"", "username":"owner","email":"owner@example.com", "enabled":"true","credentials":[{"type":"password","value":"admin","temporary":false}]}' http://imxc-keycloak-http/auth/admin/realms/exem/users
|
||||
|
||||
JWT_KEY="$(curl -s -XGET http://imxc-keycloak-http/auth/realms/exem | jq -r '.public_key')"
|
||||
export JWT_KEY
|
||||
|
||||
java -Djava.security.egd=file:/dev/./urandom -jar /app.jar
|
||||
elif [ $STATUS_CODE -eq 200 ]; then
|
||||
echo "exist exem relam"
|
||||
|
||||
JWT_KEY="$(curl -s -XGET http://imxc-keycloak-http/auth/realms/exem | jq -r '.public_key')"
|
||||
export JWT_KEY
|
||||
|
||||
java -Djava.security.egd=file:/dev/./urandom -jar /app.jar
|
||||
else
|
||||
echo "not found keycloak. check to install keycloak"
|
||||
fi
|
||||
@@ -1,14 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
STATUS_CODE="$(curl -s -o /dev/null -w '%{http_code}' http://imxc-keycloak-http/auth/realms/exem)"
|
||||
|
||||
if [ $STATUS_CODE -eq 200 ]; then
|
||||
JWT_KEY="$(curl -s -XGET http://imxc-keycloak-http/auth/realms/exem | jq -r '.public_key')"
|
||||
export JWT_KEY
|
||||
|
||||
java -Djava.security.egd=file:/dev/./urandom -jar /app.jar
|
||||
elif [ $STATUS_CODE -eq 404 ]; then
|
||||
echo "not found exem relam. check realm in imxc-keycloak"
|
||||
else
|
||||
echo "not found keycloak. check to install keycloak"
|
||||
fi
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
chmod -R 777 /scripts
|
||||
|
||||
sed -i "s/localhost/$REDIRECT_URLS/g" /scripts/init.json
|
||||
cp /scripts/init.json /tmp/init.json
|
||||
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,8 @@ data:
|
||||
socketURL: "http://{{ .Values.global.NOTI_SERVER_IP }}:{{ .Values.global.NOTI_SERVER_PORT }}/ui-server-websocket",
|
||||
// Env Settings interMaxURL
|
||||
// ex) ~/intermax/?paConnect=1&paType=ResponseInspector&fromTime=1556096539206&toTime=1556096599206&serverName=jeus89
|
||||
interMaxURL: "",
|
||||
interMaxURL: "http://{{ .Values.global.INTERMAX_IP }}:{{ .Values.global.INTERMAX_PORT }}/intermax/?",
|
||||
|
||||
manualURL: "http://{{ .Values.global.CMOA_MANUAL_SERVER_IP }}:{{ .Values.global.CMOA_MANUAL_PORT }}",
|
||||
// Env Settings CloudMOA Version
|
||||
version: '{{ .Values.global.CLOUDMOA_VERSION }}',
|
||||
@@ -69,6 +69,7 @@ affinity: {}
|
||||
|
||||
global:
|
||||
INTERMAX_IP:
|
||||
INTERMAX_PORT:
|
||||
SERVELET_URL_PROTOCOL : http
|
||||
DEMO_SERVELET_URL_PROTOCOL : http
|
||||
KEYCLOAK_AUTH_SERVER_URL: http://111.111.111.111:31082/auth
|
||||
Reference in New Issue
Block a user