提交 482926f0 作者: 余乾开

feat(argocd):修改service type

上级 dc48f537
...@@ -6,8 +6,8 @@ metadata: ...@@ -6,8 +6,8 @@ metadata:
spec: spec:
selector: selector:
app: pms app: pms
type: LoadBalancer #NodePort type: NodePort #NodePort LoadBalancer需要k8s服务商提供支持
ports: ports:
- protocol: TCP - protocol: TCP
port: 80 port: 30080
targetPort: 80 targetPort: 80
\ No newline at end of file
...@@ -5,20 +5,18 @@ metadata: ...@@ -5,20 +5,18 @@ metadata:
name: pms-application name: pms-application
namespace: argocd namespace: argocd
spec: spec:
project: default project: default # 项目名
source: source:
repoURL: http://git.mmcuav.cn/iuav/pms.git repoURL: http://git.mmcuav.cn/iuav/pms.git
targetRevision: HEAD #develop master targetRevision: HEAD #develop master # 分支名
path: argocd path: argocd # 资源文件路径
destination: destination:
server: https://kubernetes.default.svc server: https://kubernetes.default.svc # API Server 地址
namespace: develop namespace: develop # 部署应用的命名空间
# 默认情况下每 3 分钟会检测 Git 仓库一次 # 默认情况下每 3 分钟会检测 Git 仓库一次
syncPolicy: syncPolicy:
syncOptions: syncOptions:
- CreateNamespace=true - CreateNamespace=true
automated: automated:
selfHeal: true selfHeal: true
prune: true prune: true
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: argocd-ingress
namespace: argocd
spec:
ingressClassName: nginx-example
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: argocd-server
port:
number: 80
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论