|
|
@@ -1,23 +1,23 @@ |
|
|
|
apiVersion: apps/v1 |
|
|
|
kind: Deployment |
|
|
|
metadata: |
|
|
|
name: manage |
|
|
|
name: saasbase |
|
|
|
namespace: kube-<NAMESPACES> |
|
|
|
spec: |
|
|
|
|
|
|
|
selector: |
|
|
|
matchLabels: |
|
|
|
app: manage |
|
|
|
app: saasbase |
|
|
|
replicas: 1 |
|
|
|
template: |
|
|
|
metadata: |
|
|
|
labels: |
|
|
|
app: manage |
|
|
|
app: saasbase |
|
|
|
spec: |
|
|
|
containers: |
|
|
|
- image: 10.2.1.24:10242/bpa/manage:<BUILD_TAG> |
|
|
|
- image: 10.2.1.24:10242/bpa/saasbase:<BUILD_TAG> |
|
|
|
imagePullPolicy: IfNotPresent |
|
|
|
name: manage |
|
|
|
name: saasbase |
|
|
|
env: |
|
|
|
- name: branch |
|
|
|
value: <BRANCH_NAME> |
|
|
@@ -28,7 +28,7 @@ spec: |
|
|
|
protocol: TCP |
|
|
|
volumeMounts: |
|
|
|
- mountPath: "/app/appsettings.json" |
|
|
|
name: manage-config |
|
|
|
name: saasbase-config |
|
|
|
readOnly: true |
|
|
|
subPath: appsetting |
|
|
|
- mountPath: "/etc/localtime" |
|
|
@@ -41,9 +41,9 @@ spec: |
|
|
|
cpu: "500m" |
|
|
|
memory: "512Mi" |
|
|
|
volumes: |
|
|
|
- name: manage-config |
|
|
|
- name: saasbase-config |
|
|
|
configMap: |
|
|
|
name: manage-config |
|
|
|
name: saasbase-config |
|
|
|
- name: timezone |
|
|
|
hostPath: |
|
|
|
path: /usr/share/zoneinfo/Asia/Shanghai |
|
|
@@ -52,8 +52,8 @@ kind: Service |
|
|
|
apiVersion: v1 |
|
|
|
metadata: |
|
|
|
labels: |
|
|
|
app: manage |
|
|
|
name: manage |
|
|
|
app: saasbase |
|
|
|
name: saasbase |
|
|
|
namespace: kube-<NAMESPACES> |
|
|
|
spec: |
|
|
|
type: ClusterIP |
|
|
@@ -61,4 +61,4 @@ spec: |
|
|
|
- port: 80 |
|
|
|
name: http |
|
|
|
selector: |
|
|
|
app: manage |
|
|
|
app: saasbase |