幼教产业
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.3 KiB

12 months ago
kind: Deployment
apiVersion: apps/v1
metadata:
name: nakadai
namespace: huoranmicro
labels:
app: nakadai
version: v1
spec:
replicas: 1
selector:
matchLabels:
app: nakadai
version: v1
template:
metadata:
labels:
app: nakadai
version: v1
spec:
containers:
- name: nakadai
image: $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:$TAG_NAME
ports:
- containerPort: 8080
protocol: TCP
resources:
limits:
cpu: 1000m
memory: 1000Mi
requests:
cpu: 100m
memory: 100Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
restartPolicy: Always
terminationGracePeriodSeconds: 30
serviceName: nakadai
podManagementPolicy: OrderedReady
updateStrategy:
type: RollingUpdate
rollingUpdate:
partition: 0
revisionHistoryLimit: 10
---
kind: Service
apiVersion: v1
metadata:
name: nakadai
namespace: huoranmicro
labels:
app: nakadai
version: v1
spec:
ports:
- name: http
protocol: TCP
port: 8080
targetPort: 8080
nodePort: 20002
selector:
app: nakadai
type: NodePort
sessionAffinity: None