提交 cecb2343 作者: 余乾开

feat(Action):端口修正补丁

上级 e54abcfb
...@@ -6,7 +6,9 @@ metadata: ...@@ -6,7 +6,9 @@ metadata:
spec: spec:
selector: selector:
app: pms app: pms
type: NodePort
ports: ports:
- protocol: TCP - protocol: TCP
port: 8099 port: 8099
targetPort: 8099 targetPort: 8099
\ No newline at end of file NodePort: 30099
\ 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:
variant: dev variant: dev
commonAnnotations: commonAnnotations:
note: This is dev! note: This is dev!
patchesStrategicMerge: patches:
- ./configMap.yaml - path: ./configMap.yaml
- ./service.yaml target:
kind: ConfigMap
- patch: |-
- op: replace
path: "spec.ports[0].NodePort"
value: "30099"
target:
kind: Service
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: 3732dc0abbd2c9809146535a2dad2e42c5e3e050 newTag: 3732dc0abbd2c9809146535a2dad2e42c5e3e050
...@@ -2,7 +2,7 @@ apiVersion: v1 ...@@ -2,7 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: pms-svc name: pms-svc
namespace: default namespace: dev
spec: spec:
selector: selector:
app: pms app: pms
...@@ -11,4 +11,4 @@ spec: ...@@ -11,4 +11,4 @@ spec:
- protocol: TCP - protocol: TCP
port: 8099 port: 8099
targetPort: 8099 targetPort: 8099
NodePort: 30099 NodePort: 30099
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论