提交 cd4ac3f0 作者: 余乾开

refactor(config):关闭NodePort

上级 751d3266
...@@ -6,7 +6,6 @@ metadata: ...@@ -6,7 +6,6 @@ metadata:
spec: spec:
selector: selector:
app: pms app: pms
type: NodePort
ports: ports:
- port: 8099 - port: 8099
#nodePort: 30199 #nodePort: 30199
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ../../base - ../../base
#namePrefix: dev- #namePrefix: dev-
namespace: dev namespace: dev
commonLabels: commonLabels:
...@@ -9,13 +9,13 @@ commonLabels: ...@@ -9,13 +9,13 @@ commonLabels:
commonAnnotations: commonAnnotations:
note: This is dev! note: This is dev!
patches: patches:
- path: ./increase_replicas.yaml - path: ./increase_replicas.yaml
- path: ./configMap.yaml - path: ./configMap.yaml
- path: ./service-patch.yaml #- path: ./service-patch.yaml
target: # target:
kind: Service # kind: Service
name: pms-svc # name: pms-svc
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/pms newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/pms
newTag: 52d8be6d96c5022b3a7060b7064e3f4e85a6eb6c newTag: 52d8be6d96c5022b3a7060b7064e3f4e85a6eb6c
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ../../base - ../../base
namespace: prod namespace: prod
#namePrefix: prod- #namePrefix: prod-
commonLabels: commonLabels:
...@@ -9,13 +9,13 @@ commonLabels: ...@@ -9,13 +9,13 @@ commonLabels:
commonAnnotations: commonAnnotations:
note: This is prod! note: This is prod!
patches: patches:
- path: ./increase_replicas.yaml - path: ./increase_replicas.yaml
- path: ./configMap.yaml - path: ./configMap.yaml
- path: ./service-patch.yaml #- path: ./service-patch.yaml
target: # target:
kind: Service # kind: Service
name: pms-svc # name: pms-svc
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/pms newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/pms
newTag: 5e9165eda0f547dc245accbd881d1cbdcf00f20d newTag: 5e9165eda0f547dc245accbd881d1cbdcf00f20d
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论