fix: deployment命名空间和name修改

This commit is contained in:
haoxr
2023-01-29 09:40:47 +08:00
parent 99d90ab30e
commit a929396326

View File

@@ -3,8 +3,8 @@
apiVersion: apps/v1
kind: Deployment # 无状态部署
metadata: # 资源元数据
name: youlai-boot-deployment # Deployment名称必须
namespace: youlai
name: test # Deployment名称必须
namespace: youlai-workspace
labels: # 资源标签 k8s核心分组机制通过label selector 能够识别一组有共同特征或属性的资源对象, kubectl get pod -l app=youlai-boot --show-labels 过滤出所有
app: youlai-boot
spec: # Deployment 规格说明
@@ -51,8 +51,8 @@ kind: Service
metadata:
labels:
app: youlai-boot
name: youlai-boot-deployment
namespace: youlai
name: test
namespace: youlai-workspace
spec:
ports:
- name: http