1 Star 1 Fork 4

micoder/weathermap

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
deploy.yaml 3.60 KB
一键复制 编辑 原始数据 按行查看 历史
micoder 提交于 2024-01-25 12:25 +08:00 . add deploy.yaml.
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: weathermap
labels:
app: weathermapweb
name: weathermapweb
spec:
replicas: 1
selector:
matchLabels:
app: weathermapweb
template:
metadata:
labels:
app: weathermapweb
annotations:
kubesphere.io/imagepullsecrets: '{}'
spec:
containers:
- name: container-weathermapweb
imagePullPolicy: Always
ports:
- name: weathermapweb
protocol: TCP
containerPort: 80
image: 'swr.cn-north-4.myhuaweicloud.com/hi-demo/weathermapweb:latest'
env:
- name: SERVICE_ADDR
value: '120.46.77.85:32164'
serviceAccount: default
terminationGracePeriodSeconds: 30
initContainers: []
volumes: []
imagePullSecrets: null
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
---
apiVersion: v1
kind: Service
metadata:
namespace: weathermap
labels:
app: weathermapweb
name: weathermapweb
spec:
ports:
- name: weathermapweb
protocol: TCP
port: 3000
targetPort: 3000
nodePort: 30300
selector:
app: weathermapweb
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: weathermap
labels:
app: weather
name: weather
spec:
replicas: 1
selector:
matchLabels:
app: weather
template:
metadata:
labels:
app: weather
annotations:
kubesphere.io/imagepullsecrets: '{}'
spec:
containers:
- name: container-weather
imagePullPolicy: Always
ports:
- name: tcp-3010
protocol: TCP
containerPort: 3010
image: 'swr.cn-north-4.myhuaweicloud.com/hi-demo/weather:latest'
resources:
limits:
cpu: '0.5'
memory: 512Mi
env:
- name: MOCK_ENABLED
value: 'false'
volumeMounts:
- name: host-time
mountPath: /etc/localtime
readOnly: true
serviceAccount: default
terminationGracePeriodSeconds: 30
initContainers: []
volumes:
- hostPath:
path: /etc/localtime
type: ''
name: host-time
imagePullSecrets: null
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: weathermap
labels:
app: edge-service
name: edge-service
spec:
replicas: 1
selector:
matchLabels:
app: edge-service
template:
metadata:
labels:
app: edge-service
annotations:
kubesphere.io/imagepullsecrets: '{}'
spec:
containers:
- name: container-edge-service
imagePullPolicy: Always
ports:
- name: edge-service
protocol: TCP
containerPort: 3010
image: 'swr.cn-north-4.myhuaweicloud.com/hi-demo/edge-service:latest'
serviceAccount: default
terminationGracePeriodSeconds: 30
initContainers: []
volumes: []
imagePullSecrets: null
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
---
apiVersion: v1
kind: Service
metadata:
namespace: weathermap
labels:
app: edge-service
name: edge-service
spec:
sessionAffinity: None
selector:
app: edge-service
ports:
- name: tcp-3010
protocol: TCP
targetPort: 3010
port: 3010
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/micoder/weathermap.git
git@gitee.com:micoder/weathermap.git
micoder
weathermap
weathermap
master

搜索帮助