三方业务
This commit is contained in:
7
46-CMII三方业务/一珂前端/build.sh
Normal file
7
46-CMII三方业务/一珂前端/build.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build -f Dockerfile -t harbor.cdcyy.com.cn/cmii/cmii-uav-platform-renyike:6.0.0-20241202 .
|
||||
|
||||
docker run -d -p 9528:9528 harbor.cdcyy.com.cn/cmii/cmii-uav-renyike:6.0.0-20241202
|
||||
|
||||
docker push harbor.cdcyy.com.cn/cmii/cmii-uav-platform-renyike:6.0.0-20241202
|
||||
7
46-CMII三方业务/一珂前端/dockerfile
Normal file
7
46-CMII三方业务/一珂前端/dockerfile
Normal file
@@ -0,0 +1,7 @@
|
||||
FROM harbor.cdcyy.com.cn/cmii/nginx:1.27.0
|
||||
|
||||
ENV TZ "Asia/Shanghai"
|
||||
ENV WORKPATH /home/cmii-platform
|
||||
WORKDIR /home/cmii-platform
|
||||
COPY ./build ./dist
|
||||
EXPOSE 9528
|
||||
91
46-CMII三方业务/一珂前端/一珂前端.yaml
Normal file
91
46-CMII三方业务/一珂前端/一珂前端.yaml
Normal file
@@ -0,0 +1,91 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: cmii-uav-platform-renyike
|
||||
namespace: uavcloud-devoperation
|
||||
labels:
|
||||
cmii.type: frontend
|
||||
cmii.app: cmii-uav-platform-renyike
|
||||
octopus.control: frontend-app-wdd
|
||||
app.kubernetes.io/app-version: 5.7.0
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxUnavailable: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
cmii.type: frontend
|
||||
cmii.app: cmii-uav-platform-renyike
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
cmii.type: frontend
|
||||
cmii.app: cmii-uav-platform-renyike
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: harborsecret
|
||||
containers:
|
||||
- name: cmii-uav-platform-renyike
|
||||
image: harbor.cdcyy.com.cn/cmii/cmii-uav-platform-renyike:6.0.0-20241202
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: K8S_NAMESPACE
|
||||
value: uavcloud-devoperation
|
||||
- name: APPLICATION_NAME
|
||||
value: cmii-uav-platform-renyike
|
||||
ports:
|
||||
- name: platform-9528
|
||||
containerPort: 9528
|
||||
protocol: TCP
|
||||
resources:
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: 1Gi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 50Mi
|
||||
volumeMounts:
|
||||
- name: nginx-conf
|
||||
mountPath: /etc/nginx/conf.d/nginx.conf
|
||||
subPath: nginx.conf
|
||||
- name: tenant-prefix
|
||||
subPath: ingress-config.js
|
||||
mountPath: /home/cmii-platform/dist/ingress-config.js
|
||||
volumes:
|
||||
- name: nginx-conf
|
||||
configMap:
|
||||
name: nginx-cm
|
||||
items:
|
||||
- key: nginx.conf
|
||||
path: nginx.conf
|
||||
- name: tenant-prefix
|
||||
configMap:
|
||||
name: tenant-prefix-splice
|
||||
items:
|
||||
- key: ingress-config.js
|
||||
path: ingress-config.js
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: cmii-uav-platform-renyike
|
||||
namespace: uavcloud-devoperation
|
||||
labels:
|
||||
cmii.type: frontend
|
||||
cmii.app: cmii-uav-platform-renyike
|
||||
octopus.control: frontend-app-wdd
|
||||
app.kubernetes.io/version: 5.7.0
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
cmii.type: frontend
|
||||
cmii.app: cmii-uav-platform-renyike
|
||||
ports:
|
||||
- name: web-svc-port
|
||||
port: 9528
|
||||
protocol: TCP
|
||||
targetPort: 9528
|
||||
nodePort: 33333
|
||||
---
|
||||
Reference in New Issue
Block a user