代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。