Commit 0cbc52e8 by 蒋勇

d

parent 9ae434e0
apiVersion: apps/v1
kind: Deployment
metadata:
name: aliossjava
namespace: chaolai
labels:
app: aliossjava
spec:
replicas: 1
selector:
matchLabels:
app: aliossjava
template:
metadata:
labels:
app: aliossjava
spec:
restartPolicy: Always
volumes:
- name: shared-data
emptyDir: {}
containers:
- name: aliossjava
image: registry.cn-beijing.aliyuncs.com/hantang2/imgshare:667.0.1
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
volumeMounts:
- name: shared-data
mountPath: /tmp
---
kind: Service
apiVersion: v1
metadata:
labels:
app: aliossjava-service
name: aliossjava-service
namespace: chaolai
spec:
type: NodePort
ports:
- port: 80
targetPort: 80
selector:
app: aliossjava
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