#gm1
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
labels:
app: aoss-gm1
name: gm1
namespace: default
spec:
serviceName: "gm1"
replicas: 1
selector:
matchLabels:
app: aoss-gm1
template:
metadata:
labels:
app: aoss-gm1
spec:
containers:
- name: aoss-gm1
image: 10.74.170.100:5000/jw_ms-gm:jw_V6.00.70B10_p022
imagePullPolicy: Always
env:
- name: AOSSCLOUD_BASE_PORT
value: "20000"
- name: AOSSCLOUD_MYCAT_HOST
value: "mycat"
- name: AOSSCLOUD_MYCAT_PORT
value: "4306"
- name: AOSSCLOUD_MYSQL_HOST
value: "10.74.170.173"
- name: AOSSCLOUD_MYSQL_PORT
value: "3306"
- name: AOSSCLOUD_MYSQL_USER
value: "root"
- name: AOSSCLOUD_MYSQL_PASS
value: "r00t"
- name: AOSSCLOUD_MYSQL_PASS_ENCODE
value: "D0413FCA6422E4F8C0303D7BEA1541B1"
- name: AOSSCLOUD_NGINX_HOST
value: "nginx"
- name: AOSSCLOUD_NGINX_PORT
value: "9090"
- name: AOSSCLOUD_REDIS_HOST
value: "redis"
- name: AOSSCLOUD_REDIS_PORT
value: "6379"
- name: OPEN_FIRE_ADDRESS
value: "127.0.0.1"
- name: OPEN_FIRE_PORT
value: "9090"
- name: AOSSCLOUD_FILESHARE_URL
value: "ftp://ftpserver:21111"
- name: AOSSCLOUD_FILESHARE_USER
value: "uep"
- name: AOSSCLOUD_FILESHARE_PASS
value: "U_tywg_2008_ftp"
- name: AOSSCLOUD_MDB_PROCESS_IP
value: "mdb"
- name: AOSSCLOUD_MDB_PROCESS_BASE_PORT
value: "21000"
- name: AOSSCLOUD_CMDB_UNKNOWN_TENANCY
value: "1001"
- name: CMDB_REST_BASEURL
value: "http://nginx:9090/cmdb/rest/api"
- name: AOSSCLOUD_MONGO_HOST
value: "10.74.170.173"
- name: AOSSCLOUD_MONGO_PORT
value: "27017"
- name: AOSSCLOUD_JDK_DEBUG
value: "1"
- name: AOSSCLOUD_AOS_SERVICEID
value: "ms-gm"
- name: AOSSCLOUD_DOCKER_NAME
value: "10.74.170.100:5000/jw_ms-gm"
- name: AOSSCLOUD_DOCKER_VERSION
value: "jw_V6.00.70B10"
- name: AOSSCLOUD_JDK_MAXMEMORY
value: "1024m"
- name: NO_AOSSCLOUD_REDIS_AUTH
value: ""
ports:
- containerPort: 41180
protocol: TCP
- containerPort: 8787
protocol: TCP
volumeMounts:
- name: nfs
mountPath: /ums-server/works/webprocess/webprocess1/log
subPath: log
- name: nfs-aos-patch
mountPath: /aos-patch
subPath: gm/jw_V6.00.70B10_p022
volumes:
- name: nfs-aos-patch
persistentVolumeClaim:
claimName: nfs-aos-patch
volumeClaimTemplates:
- metadata:
name: nfs
annotations:
volume.alpha.kubernetes.io/storage-class: anything
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
---
kind: Service
apiVersion: v1
metadata:
labels:
app: aoss-gm1
name: gm1
namespace: default
spec:
type: NodePort
ports:
- port: 41180
name: data
targetPort: 41180
- port: 8787
name: debug
targetPort: 8787
selector:
app: aoss-gm1
---
网友评论