mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
添加k8s文件
This commit is contained in:
24
k8s/base/api.yaml
Normal file
24
k8s/base/api.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: coal-api
|
||||
labels:
|
||||
app: coal-api
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: coal-api
|
||||
template:
|
||||
metadata:
|
||||
name: coal-api
|
||||
labels:
|
||||
app: coal-api
|
||||
spec:
|
||||
containers:
|
||||
- name: coal-api
|
||||
image: coal
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 7456
|
||||
restartPolicy: Always
|
||||
Reference in New Issue
Block a user