Merge branch 'feature/task1.0.0' of http://internel-git.mashibing.cn/yanxuan-frontend/shop-pc into feature/task1.0.0
commit
ed7e8ea61d
@ -0,0 +1,12 @@
|
|||||||
|
FROM node:12.13.1
|
||||||
|
WORKDIR /workload
|
||||||
|
|
||||||
|
COPY nuxt.config.js /workload/nuxt.config.js
|
||||||
|
COPY package.json /workload/package.json
|
||||||
|
COPY .nuxt /workload/.nuxt
|
||||||
|
|
||||||
|
RUN npm config set registry https://registry.npm.taobao.org \
|
||||||
|
&& npm install
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD npm run start
|
@ -0,0 +1,54 @@
|
|||||||
|
kind: Deployment
|
||||||
|
apiVersion: apps/v1
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: $IMAGES
|
||||||
|
name: $IMAGES
|
||||||
|
namespace: yanxuan
|
||||||
|
spec:
|
||||||
|
progressDeadlineSeconds: 600
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: $IMAGES
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 25%
|
||||||
|
maxSurge: 25%
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: $IMAGES
|
||||||
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: aliyun-docker-hub
|
||||||
|
containers:
|
||||||
|
- image: '$REGISTRY/$DOCKERHUB_NAMESPACE/$IMAGES:$BUILD_NUMBER'
|
||||||
|
name: app
|
||||||
|
ports:
|
||||||
|
- containerPort: $JAR_PORD
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: '0.5'
|
||||||
|
memory: 500Mi
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
dnsPolicy: ClusterFirst
|
||||||
|
restartPolicy: Always
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
---
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: $IMAGES
|
||||||
|
namespace: yanxuan
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: 80
|
||||||
|
selector:
|
||||||
|
app: $IMAGES
|
||||||
|
type: ClusterIP
|
After Width: | Height: | Size: 706 B |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 7.7 KiB |
Loading…
Reference in new issue