.ET CORE WebAPI 通用 Deploy.yaml 文件
.ET CORE WebAPI 通用 Deploy.yaml 文件
core webapi 服务通用 Deploy.yaml 文件代码语言:shell复制apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: ${APP_AME}
namespace: ${APP_AMESPACE}
labels:
.ET CORE WebAPI 通用 Deploy.yaml 文件
core webapi 服务通用 Deploy.yaml 文件
代码语言:shell复制apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: ${APP_AME}
namespace: ${APP_AMESPACE}
labels:
app.kubernetes.io/version: v1
app.kubernetes.io/name: ${APP_AME}
annotati:
servicemesh.kubesphere.io/enabled: "true"
spec:
selector:
matchLabels:
app.kubernetes.io/version: v1
app.kubernetes.io/name: ${APP_AME}
addOwnerRef: true
componentKinds:
- group: ""
kind: Service
- group: apps
kind: Deployment
- group: apps
kind: StatefulSet
- group: extensi
kind: Ingress
- group: servicemesh.kubesphere.io
kind: Strategy
- group: servicemesh.kubesphere.io
kind: ServicePolicy
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: ${APP_AMESPACE}
labels:
app.kubernetes.io/version: v1
app.kubernetes.io/name: ${APP_AME}
name: ${APP_AME}-ingress
annotati:
nginx.ingress.kubernetes.io/upstream-vhost: ${APP_AME}.${APP_AMESPACE}.local
spec:
rules:
- http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: ${APP_AME}
port:
number: 80
host: ${APP_AME}.${APP_AMESPACE}.${GW_IP}.nip.io
tls: []
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ${APP_AMESPACE}
labels:
version: v1
app: ${APP_AME}
app.kubernetes.io/version: v1
app.kubernetes.io/name: ${APP_AME}
name: ${APP_AME}-v1
annotati:
servicemesh.kubesphere.io/enabled: "true"
spec:
replicas: ${REPLICAS}
selector:
matchLabels:
version: v1
app: ${APP_AME}
app.kubernetes.io/version: v1
app.kubernetes.io/name: ${APP_AME}
template:
metadata:
labels:
version: v1
app: ${APP_AME}
app.kubernetes.io/version: v1
app.kubernetes.io/name: ${APP_AME}
annotati:
sidecar.istio.io/inject: "true"
spec:
containers:
- name: container-${APP_AME}
imagePullPolicy: Always
# pullSecret: docker-aliyun-id # d1
image: ${IMAGE}
ports:
- name: http-${APP_AME}
protocol: TCP
containerPort: ${APP_PORT}
# servicePort: 80 # d1
env:
- name: EV
value: ${EV_AME}
serviceAccount: default
affinity: {}
initContainers: []
volumes: []
imagePullSecrets:
- name: docker-aliyun-id
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
---
apiVersion: v1
kind: Service
metadata:
namespace: ${APP_AMESPACE}
labels:
version: v1
app: ${APP_AME}
app.kubernetes.io/version: v1
app.kubernetes.io/name: ${APP_AME}
annotati:
kubesphere.io/serviceType: statelessservice
servicemesh.kubesphere.io/enabled: "true"
name: ${APP_AME}
spec:
sessionAffinity: one
selector:
app: ${APP_AME}
app.kubernetes.io/version: v1
app.kubernetes.io/name: ${APP_AME}
ports:
- name: http-${APP_AME}
protocol: TCP
port: 80
targetPort: ${APP_PORT}
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: ${APP_AMESPACE}
labels:
version: v1
app: ${APP_AME}
app.kubernetes.io/version: v1
app.kubernetes.io/name: ${APP_AME}
name: ${APP_AME}-v1
annotati:
servicemesh.kubesphere.io/enabled: "true"
spec:
replicas: ${REPLICAS}
selector:
matchLabels:
version: v1
app: ${APP_AME}
app.kubernetes.io/version: v1
app.kubernetes.io/name: ${APP_AME}
template:
metadata:
labels:
version: v1
app: ${APP_AME}
app.kubernetes.io/version: v1
app.kubernetes.io/name: ${APP_AME}
annotati:
sidecar.istio.io/inject: "true"
spec:
containers:
- name: container-${APP_AME}
imagePullPolicy: Always
# pullSecret: docker-aliyun-id # d1
image: ${IMAGE}
ports:
- name: http-${APP_AME}
protocol: TCP
containerPort: ${APP_PORT}
# servicePort: 80 # d1
env:
- name: ASPETCORE_EVIROMET
value: ${EV_AME}
serviceAccount: default
affinity: {}
initContainers: []
volumes: []
imagePullSecrets:
- name: docker-aliyun-id
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格
上传时间: 2025-07-19 21:30:50
推荐阅读
留言与评论(共有 6 条评论) |
本站网友 龙潭庙会 | 27分钟前 发表 |
v1 app | |
本站网友 上冲二手房 | 12分钟前 发表 |
[] imagePullSecrets | |
本站网友 陈丹彤 | 28分钟前 发表 |
RollingUpdate rollingUpdate | |
本站网友 新兴龙山温泉 | 11分钟前 发表 |
${APP_AME} addOwnerRef | |
本站网友 谢利 | 16分钟前 发表 |
[] imagePullSecrets |