Commit 92370edd by 蒋勇

add

parent 84de3275
apiVersion: apps/v1
kind: Deployment
metadata:
name: specialprofile
namespace: chaolai
labels:
app: specialprofile
spec:
replicas: 1
selector:
matchLabels:
app: specialprofile
template:
metadata:
labels:
app: specialprofile
spec:
restartPolicy: Always
containers:
- name: specialprofile
image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:700.0.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
env:
- name: TZ
value: Asia/Shanghai
- name: LANG
value: zh_CN.UTF-8
---
kind: Service
apiVersion: v1
metadata:
labels:
app: specialprofile-service
name: specialprofile-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
nodePort: 30005
selector:
app: specialprofile
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment