Skip to content

Commit

Permalink
feat: 迁移代码
Browse files Browse the repository at this point in the history
  • Loading branch information
liguobao committed Feb 19, 2024
1 parent 4a1cb3a commit 6dac784
Show file tree
Hide file tree
Showing 64 changed files with 20,603 additions and 10,998 deletions.
Binary file added .DS_Store
Binary file not shown.
3 changes: 0 additions & 3 deletions House-Map.UI/.browserslistrc

This file was deleted.

17 changes: 0 additions & 17 deletions House-Map.UI/.eslintrc.js

This file was deleted.

2 changes: 0 additions & 2 deletions House-Map.UI/.gitattributes

This file was deleted.

21 changes: 0 additions & 21 deletions House-Map.UI/.gitignore

This file was deleted.

7 changes: 4 additions & 3 deletions House-Map.UI/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
FROM node:10 AS build-env
FROM node:10.10.0 AS build-env
WORKDIR /app
COPY ./package.json .
RUN npm install --registry=https://registry.npmmirror.com
COPY ./package.json .
COPY ./package-lock.json .
RUN npm install
COPY . .
RUN npm run build

Expand Down
66 changes: 66 additions & 0 deletions House-Map.UI/deploy/Prod/Deployment.taml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: house-map-ui
name: house-map-ui
spec:
replicas: 2
selector:
matchLabels:
run: house-map-ui
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
run: house-map-ui
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- vm-16-12-ubuntu
containers:
- image: ${IMAGE_NAME}
imagePullPolicy: IfNotPresent
name: house-map-ui
terminationMessagePath: /dev/termination-log
resources:
limits:
cpu: 100m
memory: 256Mi
requests:
cpu: 10m
memory: 64Mi
imagePullSecrets:
- name: regcred
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: house-map-ui
namespace: default
spec:
externalTrafficPolicy: Cluster
ports:
- nodePort: 32505
port: 80
protocol: TCP
targetPort: 80
selector:
run: house-map-ui
sessionAffinity: None
type: NodePort
62 changes: 62 additions & 0 deletions House-Map.UI/deploy/Test/Deployment.taml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: house-map-ui
name: house-map-ui
spec:
replicas: 2
selector:
matchLabels:
run: house-map-ui
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
run: house-map-ui
spec:
containers:
- image: ${IMAGE_NAME}
imagePullPolicy: IfNotPresent
name: house-map-ui
terminationMessagePath: /dev/termination-log
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 120
periodSeconds: 30
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 50m
memory: 256Mi
imagePullSecrets:
- name: regcred
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: house-map-ui
annotations:
service.kubernetes.io/qcloud-loadbalancer-internal-subnetid: subnet-mb1sqly3
spec:
selector:
run: house-map-ui
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer
externalTrafficPolicy: Cluster
Loading

0 comments on commit 6dac784

Please sign in to comment.