@@ -0,0 +1,13 @@
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ labels:
+ app: i2-bbs-backend
+ name: i2-bbs-backend
+ namespace: i2
+data:
+ app.conf: |-
+ app_name = i2-bbs-backend
+ http_port = 8080
+ run_mode = release
+ log_mode = debug
@@ -0,0 +1,46 @@
+apiVersion: apps/v1beta1
+kind: Deployment
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ template:
+ metadata:
+ spec:
+ hostAliases:
+ - ip: "192.168.0.1"
+ hostnames:
+ - "www.ccbeetech.com"
+ - "ccbeetech.com"
+ containers:
+ - name: i2-bbs-backend
+ image: docker.i2erp.cn/i2-bbs-backend:10034
+ volumeMounts:
+ - name: config
+ mountPath: /app/conf/
+ - name: date-config
+ mountPath: /etc/localtime
+ resources:
+ limits:
+ memory: "2Gi"
+ cpu: "1000m"
+ requests:
+ memory: "10Mi"
+ cpu: "10m"
+ ports:
+ - containerPort: 9001
+ imagePullSecrets:
+ - name: registrykey-i2erp
+ volumes:
+ configMap:
+ hostPath:
+ path: /etc/localtime
@@ -0,0 +1,9 @@
+ .dockerconfigjson: eyJhdXRocyI6eyJkb2NrZXIuaTJlcnAuY24iOnsidXNlcm5hbWUiOiJodWFuZ3JmIiwicGFzc3dvcmQiOiJoaHVhbmdyZkAjMTk4NiIsImVtYWlsIjoiaHVhbmdyZkBxaWFucWl1c29mdC5jb20iLCJhdXRoIjoiYUhWaGJtZHlaanBvYUhWaGJtZHlaa0FqTVRrNE5nPT0ifX19
+kind: Secret
+ name: registrykey-i2erp
+ selfLink: /api/v1/namespaces/i2/secrets/registrykey-i2erp
+type: kubernetes.io/dockerconfigjson
@@ -0,0 +1,16 @@
+kind: Service
+ type: NodePort
+ - port: 9001
+ name: api
+ nodePort: 31104
+ protocol: TCP
+ targetPort: 9001
+
@@ -0,0 +1 @@
+kubectl apply -f ./
@@ -0,0 +1,19 @@
+ app: i2-bbs-frontend
+ name: i2-bbs-frontend
+ config.js: |-
+ window.CONFIG = {
+ AuthMode: 'local',
+ URL: 'https://bbs.i2edu.com/v1/api',
+ staticURL: 'https://bbs.i2edu.com/v1/api',
+ };
+ app_name = e-school-backend
+ http_port = 80
+ run_mode = debug
@@ -0,0 +1,44 @@
+apiVersion: apps/v1
+ - name: i2-bbs-frontend
+ image: docker.i2erp.cn/i2-bbs-frontend:10029
+ mountPath: /app/web/config.js
+ subPath: config.js
+ mountPath: /app/conf/app.conf
+ subPath: app.conf
+ cpu: "11m"
+ - containerPort: 80
@@ -0,0 +1,14 @@
+ - port: 31106
+ nodePort: 31106
+ targetPort: 80