提交 cecb2343 作者: 余乾开

feat(Action):端口修正补丁

上级 e54abcfb
......@@ -6,7 +6,9 @@ metadata:
spec:
selector:
app: pms
type: NodePort
ports:
- protocol: TCP
port: 8099
targetPort: 8099
\ No newline at end of file
targetPort: 8099
NodePort: 30099
\ No newline at end of file
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
- ../../base
#namePrefix: dev-
namespace: dev
commonLabels:
variant: dev
commonAnnotations:
note: This is dev!
patchesStrategicMerge:
- ./configMap.yaml
- ./service.yaml
patches:
- path: ./configMap.yaml
target:
kind: ConfigMap
- patch: |-
- op: replace
path: "spec.ports[0].NodePort"
value: "30099"
target:
kind: Service
name: pms-svc
images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/pms
newTag: 3732dc0abbd2c9809146535a2dad2e42c5e3e050
- name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/pms
newTag: 3732dc0abbd2c9809146535a2dad2e42c5e3e050
......@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: pms-svc
namespace: default
namespace: dev
spec:
selector:
app: pms
......@@ -11,4 +11,4 @@ spec:
- protocol: TCP
port: 8099
targetPort: 8099
NodePort: 30099
\ No newline at end of file
NodePort: 30099
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论