gpt4 book ai didi

nginx - secret argocd/argo-cert-prod已更新,并在入口注释中使用

转载 作者:行者123 更新时间:2023-12-02 11:55:23 25 4
gpt4 key购买 nike

我使用ArgoCD并通过NGINX入口发布了UI,如下所示:

apiVersion: cert-manager.io/v1alpha2
kind: Certificate
metadata:
name: svc-cert-prod
namespace: argocd
spec:
secretName: argo-cert-prod
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
commonName: "cd.example.io"
dnsNames:
- "cd.example.io"
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: argocd-server-ingress
namespace: argocd
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
# If you encounter a redirect loop or are getting a 307 response code
# then you need to force the nginx ingress to connect to the backend using HTTPS.
#
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
rules:
- host: cd.example.io
http:
paths:
- backend:
serviceName: argocd-server
servicePort: https
path: /
tls:
- hosts:
- cd.example.io
secretName: argo-cert-prod
---

当我查看NGINX容器日志时,它显示
I0524 20:13:05.721610       7 store.go:448] secret argocd/argo-cert-prod was updated and it is used in ingress annotations. Parsing...
I0524 20:13:05.920550 7 store.go:448] secret argocd/argo-cert-prod was updated and it is used in ingress annotations. Parsing...
I0524 20:13:06.121675 7 store.go:448] secret argocd/argo-cert-prod was updated and it is used in ingress annotations. Parsing...
I0524 20:13:06.321001 7 store.go:448] secret argocd/argo-cert-prod was updated and it is used in ingress annotations. Parsing...
I0524 20:13:06.524940 7 store.go:448] secret argocd/argo-cert-prod was updated and it is used in ingress annotations. Parsing...
I0524 20:13:06.720776 7 store.go:448] secret argocd/argo-cert-prod was updated and it is used in ingress annotations. Parsing...
I0524 20:13:06.922470 7 store.go:448] secret argocd/argo-cert-prod was updated and it is used in ingress annotations. Parsing...
I0524 20:13:07.122135 7 store.go:448] secret argocd/argo-cert-prod was updated and it is used in ingress annotations. Parsing.

为什么它每秒显示一次消息?我还安装了 https://goharbor.io/,它也使用NGINX入口。但是我没有从港口收到任何消息。

我使用Rancher,它显示:

enter image description here

这是间隔消息的原因吗?

最佳答案

该消息表示某事一直在更新您的 secret 。

这可能是两个具有相同 secret 名称的Ingress之间发生冲突。

您正在使用cert-manager,因此请检查您在此使用的 secret 名称对于该 namespace 中的所有Ingress都是唯一的,并且没有其他使用具有该名称的 secret 。

另外,请确保除了cert-manager以外,什么都没有尝试更新 secret 。也许您还有其他与 secret 有关的内容,这些 secret 试图用相同的名称编写 secret 。

UPD:基于您的更新-是的,它负责发送间隔消息。

关于nginx - secret argocd/argo-cert-prod已更新,并在入口注释中使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61991990/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com