首次访问后Fluxcd失败 [英] fluxcd failure after first access

查看:41
本文介绍了首次访问后Fluxcd失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在K8上的Fluxcd工作负载有一个有趣的情况。我正在尝试在我的K8(在EKS上)上配置fluxcd工作负载,以便从我的repo中部署应用程序。日志显示它能够访问GitHub并找到新发布的K8s目标文件。但所有后续访问都返回此错误:

ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

K8S版本=1.18 流量版本=1.21.0

对诊断此问题有何建议? 这是完整的日志。

ts=2021-01-22T07:11:41.660683058Z caller=main.go:259 version=1.21.0
ts=2021-01-22T07:11:41.660729123Z caller=main.go:412 msg="using kube config: "/root/.kube/config" to connect to the cluster"
ts=2021-01-22T07:11:41.694067171Z caller=main.go:492 component=cluster identity=/etc/fluxd/ssh/identity
ts=2021-01-22T07:11:41.694102094Z caller=main.go:493 component=cluster identity.pub="ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx fluxcd"
ts=2021-01-22T07:11:41.694126615Z caller=main.go:498 host=https://172.20.0.1:443 version=kubernetes-v1.18.9-eks-d1db3c
ts=2021-01-22T07:11:41.694166271Z caller=main.go:510 kubectl=/usr/local/bin/kubectl
ts=2021-01-22T07:11:41.695265432Z caller=main.go:527 ping=true
ts=2021-01-22T07:11:41.695536819Z caller=main.go:666 url=ssh://git@github.com/xxx/xxx.git user=xxx email=xxx@xxx.com signing-key= verify-signatures-mode=none sync-tag=build-flux-sync state=git readonly=false registry-disable-scanning=true notes-ref=build-flux-sync set-author=false git-secret=false sops=false
ts=2021-01-22T07:11:41.695576145Z caller=main.go:751 component=upstream URL=ws://fluxcloud
ts=2021-01-22T07:11:41.696562798Z caller=upstream.go:133 component=upstream connecting=true
ts=2021-01-22T07:11:41.696893569Z caller=main.go:795 addr=:3030
ts=2021-01-22T07:11:41.696977557Z caller=loop.go:67 component=sync-loop info="Registry scanning is disabled; no image updates will be attempted"
ts=2021-01-22T07:11:41.697063581Z caller=sync.go:51 component=daemon warning="failed to load last-synced resources. sync event may be inaccurate" err="git repo not ready: git repo has not been cloned yet"
ts=2021-01-22T07:11:41.697104186Z caller=loop.go:108 component=sync-loop err="git repo not ready: git repo has not been cloned yet"
ts=2021-01-22T07:11:41.699018988Z caller=upstream.go:147 component=upstream connected=true
ts=2021-01-22T07:11:42.174047585Z caller=checkpoint.go:24 component=checkpoint msg="up to date" latest=1.20.1
ts=2021-01-22T07:11:52.629446199Z caller=loop.go:134 component=sync-loop event=refreshed url=ssh://git@github.com/xxx/xxx.git branch=xxx HEAD=ad71e60d5b61fb17c85646c5ef3af010f33ca2ec
ts=2021-01-22T07:13:29.206177525Z caller=sync.go:61 component=daemon info="trying to sync git changes to the cluster" old=3d3df47da9826002698e9d6faef603347d71607d new=ad71e60d5b61fb17c85646c5ef3af010f33ca2ec
ts=2021-01-22T07:14:38.430957604Z caller=sync.go:79 method=Sync info="not applying resource; ignore annotation in file" resource=flux:deployment/flux source=fluxcd/deployment-flux.yaml
ts=2021-01-22T07:14:38.431682477Z caller=sync.go:540 method=Sync cmd=apply args= count=67
ts=2021-01-22T07:14:40.412253941Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=1.980475048s err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found
Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found
Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found
Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found
Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found
Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found
Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found
Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found
Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found
Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found
Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found
Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output="namespace/admin unchanged
namespace/backstage unchanged
namespace/cert-manager unchanged
namespace/default unchanged
namespace/flux unchanged
namespace/kube-node-lease unchanged
namespace/kube-public unchanged
namespace/kube-system unchanged
namespace/kubernetes-dashboard unchanged
serviceaccount/efs-provisioner unchanged
clusterrole.rbac.authorization.k8s.io/efs-provisioner-runner unchanged
serviceaccount/fluent-bit created
clusterrole.rbac.authorization.k8s.io/fluent-bit-read created
serviceaccount/flux configured
clusterrole.rbac.authorization.k8s.io/flux configured
service/fluxcloud configured
clusterrole.rbac.authorization.k8s.io/ingress-nginx created
clusterrole.rbac.authorization.k8s.io/ingress-nginx-admission created
role.rbac.authorization.k8s.io/leader-locking-efs-provisioner unchanged
service/memcached configured
serviceaccount/metrics-server unchanged
service/metrics-server unchanged
service/sealed-secrets-controller unchanged
serviceaccount/sealed-secrets-controller unchanged
role.rbac.authorization.k8s.io/sealed-secrets-key-admin unchanged
role.rbac.authorization.k8s.io/sealed-secrets-service-proxier unchanged
customresourcedefinition.apiextensions.k8s.io/sealedsecrets.bitnami.com unchanged
clusterrole.rbac.authorization.k8s.io/secrets-unsealer unchanged
clusterrole.rbac.authorization.k8s.io/system:aggregated-metrics-reader unchanged
clusterrole.rbac.authorization.k8s.io/system:metrics-server unchanged
configmap/fluent-bit-config created
clusterrolebinding.rbac.authorization.k8s.io/fluent-bit-read created
clusterrolebinding.rbac.authorization.k8s.io/flux configured
persistentvolumeclaim/flux-tmp configured
clusterrolebinding.rbac.authorization.k8s.io/ingress-nginx created
clusterrolebinding.rbac.authorization.k8s.io/ingress-nginx-admission created
rolebinding.rbac.authorization.k8s.io/leader-locking-efs-provisioner unchanged
rolebinding.rbac.authorization.k8s.io/metrics-server-auth-reader unchanged
clusterrolebinding.rbac.authorization.k8s.io/metrics-server:system:auth-delegator unchanged
clusterrolebinding.rbac.authorization.k8s.io/run-efs-provisioner unchanged
rolebinding.rbac.authorization.k8s.io/sealed-secrets-controller unchanged
clusterrolebinding.rbac.authorization.k8s.io/sealed-secrets-controller unchanged
rolebinding.rbac.authorization.k8s.io/sealed-secrets-service-proxier unchanged
clusterrolebinding.rbac.authorization.k8s.io/system:metrics-server unchanged
deployment.apps/efs-provisioner configured
daemonset.apps/fluent-bit created
deployment.apps/fluxcloud configured
deployment.apps/memcached configured
deployment.apps/metrics-server unchanged
deployment.apps/sealed-secrets-controller configured
storageclass.storage.k8s.io/aws-efs-standard unchanged
storageclass.storage.k8s.io/ebs-csi-gp2 unchanged
sealedsecret.bitnami.com/git-ssh-key configured
validatingwebhookconfiguration.admissionregistration.k8s.io/ingress-nginx-admission created
apiservice.apiregistration.k8s.io/v1beta1.metrics.k8s.io unchanged"
ts=2021-01-22T07:14:40.811174903Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=398.82547ms err=null output="namespace/admin unchanged"
ts=2021-01-22T07:14:41.394748916Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=583.515075ms err=null output="namespace/backstage unchanged"
ts=2021-01-22T07:14:41.900681885Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=505.881649ms err=null output="namespace/cert-manager unchanged"
ts=2021-01-22T07:14:42.397868741Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=497.106578ms err=null output="namespace/default unchanged"
ts=2021-01-22T07:14:42.891058742Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=493.137805ms err=null output="namespace/flux unchanged"
ts=2021-01-22T07:14:43.413384242Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=522.267484ms err=null output="namespace/kube-node-lease unchanged"
ts=2021-01-22T07:14:43.913865089Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=500.425913ms err=null output="namespace/kube-public unchanged"
ts=2021-01-22T07:14:44.408359028Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=494.417052ms err=null output="namespace/kube-system unchanged"
ts=2021-01-22T07:14:44.99409166Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=585.68475ms err=null output="namespace/kubernetes-dashboard unchanged"
ts=2021-01-22T07:14:45.487302521Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=493.154343ms err=null output="serviceaccount/efs-provisioner unchanged"
ts=2021-01-22T07:14:45.986967413Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=499.613885ms err=null output="clusterrole.rbac.authorization.k8s.io/efs-provisioner-runner unchanged"
ts=2021-01-22T07:14:46.507919018Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=520.893135ms err=null output="serviceaccount/fluent-bit unchanged"
ts=2021-01-22T07:14:47.023825463Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=515.859875ms err=null output="clusterrole.rbac.authorization.k8s.io/fluent-bit-read unchanged"
ts=2021-01-22T07:14:47.4935634Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=469.689953ms err=null output="serviceaccount/flux unchanged"
ts=2021-01-22T07:14:47.912133528Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=418.525693ms err=null output="clusterrole.rbac.authorization.k8s.io/flux unchanged"
ts=2021-01-22T07:14:48.387499012Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=475.318357ms err=null output="service/fluxcloud unchanged"
ts=2021-01-22T07:14:48.871262811Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=483.705164ms err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output=
ts=2021-01-22T07:14:49.397015116Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=525.697104ms err=null output="clusterrole.rbac.authorization.k8s.io/ingress-nginx unchanged"
ts=2021-01-22T07:14:49.87199228Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=474.919539ms err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output=
ts=2021-01-22T07:14:50.355258006Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=483.211989ms err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output=
ts=2021-01-22T07:14:50.812340209Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=457.025093ms err=null output="clusterrole.rbac.authorization.k8s.io/ingress-nginx-admission unchanged"
ts=2021-01-22T07:14:51.355618608Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=543.227442ms err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output=
ts=2021-01-22T07:14:51.872033727Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=516.367722ms err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output=
ts=2021-01-22T07:14:52.371578968Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=499.49742ms err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output=
ts=2021-01-22T07:14:52.798805188Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=427.180173ms err=null output="role.rbac.authorization.k8s.io/leader-locking-efs-provisioner unchanged"
ts=2021-01-22T07:14:53.292518268Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=493.664061ms err=null output="service/memcached unchanged"
ts=2021-01-22T07:14:53.695930907Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=403.364685ms err=null output="serviceaccount/metrics-server unchanged"
ts=2021-01-22T07:14:54.193472131Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=497.485626ms err=null output="service/metrics-server unchanged"
ts=2021-01-22T07:14:54.70293546Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=509.415046ms err=null output="service/sealed-secrets-controller unchanged"
ts=2021-01-22T07:14:55.205694885Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=502.704135ms err=null output="serviceaccount/sealed-secrets-controller unchanged"
ts=2021-01-22T07:14:55.694254797Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=488.509092ms err=null output="role.rbac.authorization.k8s.io/sealed-secrets-key-admin unchanged"
ts=2021-01-22T07:14:56.208222605Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=513.920697ms err=null output="role.rbac.authorization.k8s.io/sealed-secrets-service-proxier unchanged"
ts=2021-01-22T07:14:56.694122349Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=485.841913ms err=null output="customresourcedefinition.apiextensions.k8s.io/sealedsecrets.bitnami.com unchanged"
ts=2021-01-22T07:14:57.211083636Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=516.911932ms err=null output="clusterrole.rbac.authorization.k8s.io/secrets-unsealer unchanged"
ts=2021-01-22T07:14:57.692955699Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=481.822011ms err=null output="clusterrole.rbac.authorization.k8s.io/system:aggregated-metrics-reader unchanged"
ts=2021-01-22T07:14:58.105620938Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=412.616954ms err=null output="clusterrole.rbac.authorization.k8s.io/system:metrics-server unchanged"
ts=2021-01-22T07:14:58.597035893Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=491.365636ms err=null output="configmap/fluent-bit-config unchanged"
ts=2021-01-22T07:14:59.096279092Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=499.193705ms err=null output="clusterrolebinding.rbac.authorization.k8s.io/fluent-bit-read unchanged"
ts=2021-01-22T07:14:59.609137559Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=512.808678ms err=null output="clusterrolebinding.rbac.authorization.k8s.io/flux unchanged"
ts=2021-01-22T07:15:00.113543907Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=504.353462ms err=null output="persistentvolumeclaim/flux-tmp unchanged"
ts=2021-01-22T07:15:00.606935711Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=493.330415ms err=null output="clusterrolebinding.rbac.authorization.k8s.io/ingress-nginx unchanged"
ts=2021-01-22T07:15:01.174866675Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=567.880665ms err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output=
ts=2021-01-22T07:15:01.607053543Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=432.139535ms err=null output="clusterrolebinding.rbac.authorization.k8s.io/ingress-nginx-admission unchanged"
ts=2021-01-22T07:15:02.159227347Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=552.117123ms err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output=
ts=2021-01-22T07:15:02.671269693Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=511.980415ms err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output=
ts=2021-01-22T07:15:03.110989126Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=439.656913ms err=null output="rolebinding.rbac.authorization.k8s.io/leader-locking-efs-provisioner unchanged"
ts=2021-01-22T07:15:03.597787026Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=486.74369ms err=null output="rolebinding.rbac.authorization.k8s.io/metrics-server-auth-reader unchanged"
ts=2021-01-22T07:15:04.102917786Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=505.084409ms err=null output="clusterrolebinding.rbac.authorization.k8s.io/metrics-server:system:auth-delegator unchanged"
ts=2021-01-22T07:15:04.597446493Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=494.473142ms err=null output="clusterrolebinding.rbac.authorization.k8s.io/run-efs-provisioner unchanged"
ts=2021-01-22T07:15:05.105545977Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=508.051542ms err=null output="rolebinding.rbac.authorization.k8s.io/sealed-secrets-controller unchanged"
ts=2021-01-22T07:15:05.693874047Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=588.276311ms err=null output="clusterrolebinding.rbac.authorization.k8s.io/sealed-secrets-controller unchanged"
ts=2021-01-22T07:15:06.198681789Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=504.759864ms err=null output="rolebinding.rbac.authorization.k8s.io/sealed-secrets-service-proxier unchanged"
ts=2021-01-22T07:15:06.707216771Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=508.485939ms err=null output="clusterrolebinding.rbac.authorization.k8s.io/system:metrics-server unchanged"
ts=2021-01-22T07:15:07.20203917Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=494.775224ms err=null output="deployment.apps/efs-provisioner configured"
ts=2021-01-22T07:15:07.687488657Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=485.401142ms err=null output="daemonset.apps/fluent-bit configured"
ts=2021-01-22T07:15:08.197431353Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=509.895359ms err=null output="deployment.apps/fluxcloud unchanged"
ts=2021-01-22T07:15:08.686987288Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=489.509786ms err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output=
ts=2021-01-22T07:15:09.258416008Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=571.385297ms err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output=
ts=2021-01-22T07:15:09.7778928Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=519.425596ms err="running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found" output=
ts=2021-01-22T07:15:10.2221443Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=444.199377ms err=null output="deployment.apps/memcached configured"
ts=2021-01-22T07:15:10.695917417Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=473.723335ms err=null output="deployment.apps/metrics-server unchanged"
ts=2021-01-22T07:15:11.224662658Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=528.694215ms err=null output="deployment.apps/sealed-secrets-controller configured"
ts=2021-01-22T07:15:11.787295286Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=562.582572ms err=null output="storageclass.storage.k8s.io/aws-efs-standard unchanged"
ts=2021-01-22T07:15:12.206831282Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=419.488021ms err=null output="storageclass.storage.k8s.io/ebs-csi-gp2 unchanged"
ts=2021-01-22T07:15:12.696859048Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=489.978989ms err=null output="sealedsecret.bitnami.com/git-ssh-key unchanged"
ts=2021-01-22T07:15:13.216985598Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=520.054356ms err=null output="validatingwebhookconfiguration.admissionregistration.k8s.io/ingress-nginx-admission configured"
ts=2021-01-22T07:15:13.69546204Z caller=sync.go:606 method=Sync cmd="kubectl apply -f -" took=478.426535ms err=null output="apiservice.apiregistration.k8s.io/v1beta1.metrics.k8s.io unchanged"
ts=2021-01-22T07:15:14.294910311Z caller=sync.go:231 component=daemon err="ingress-nginx:serviceaccount/ingress-nginx: running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found; ingress-nginx:role/ingress-nginx: running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found; ingress-nginx:role/ingress-nginx-admission: running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found; ingress-nginx:serviceaccount/ingress-nginx-admission: running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found; ingress-nginx:service/ingress-nginx-controller: running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found; ingress-nginx:service/ingress-nginx-controller-admission: running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found; ingress-nginx:rolebinding/ingress-nginx: running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found; ingress-nginx:rolebinding/ingress-nginx-admission: running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found; ingress-nginx:configmap/ingress-nginx-controller: running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found; ingress-nginx:job/ingress-nginx-admission-create: running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found; ingress-nginx:job/ingress-nginx-admission-patch: running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found; ingress-nginx:deployment/ingress-nginx-controller: running kubectl: exit status 1, stderr: Error from server (NotFound): error when creating "STDIN": namespaces "ingress-nginx" not found"
ts=2021-01-22T07:15:14.316975589Z caller=daemon.go:704 component=daemon event="Sync: ad71e60, <cluster>:clusterrole/fluent-bit-read, <cluster>:clusterrole/ingress-nginx, <cluster>:clusterrole/ingress-nginx-admission, <cluster>:clusterrolebinding/fluent-bit-read, <cluster>:clusterrolebinding/ingress-nginx, <cluster>:clusterrolebinding/ingress-nginx-admission, <cluster>:validatingwebhookconfiguration/ingress-nginx-admission, admin:configmap/fluent-bit-config, admin:daemonset/fluent-bit, admin:serviceaccount/fluent-bit, ingress-nginx:configmap/ingress-nginx-controller, ingress-nginx:deployment/ingress-nginx-controller, ingress-nginx:job/ingress-nginx-admission-create, ingress-nginx:job/ingress-nginx-admission-patch, ingress-nginx:role/ingress-nginx, ingress-nginx:role/ingress-nginx-admission, ingress-nginx:rolebinding/ingress-nginx, ingress-nginx:rolebinding/ingress-nginx-admission, ingress-nginx:service/ingress-nginx-controller, ingress-nginx:service/ingress-nginx-controller-admission, ingress-nginx:serviceaccount/ingress-nginx, ingress-nginx:serviceaccount/ingress-nginx-admission" logupstream=true
ts=2021-01-22T07:17:02.44292057Z caller=loop.go:108 component=sync-loop err="pushing tag to origin: fatal: Could not read from remote repository., full output:
 ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
"
ts=2021-01-22T07:17:02.443021657Z caller=loop.go:127 component=sync-loop url=ssh://git@github.com/xxx/xxx.git err="git repo not ready: git clone --mirror: fatal: Could not read from remote repository., full output:
 Cloning into bare repository '/tmp/flux-gitclone159237772'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
"
ts=2021-01-22T07:32:02.443091782Z caller=sync.go:51 component=daemon warning="failed to load last-synced resources. sync event may be inaccurate" err="git repo not ready: git clone --mirror: fatal: Could not read from remote repository., full output:
 Cloning into bare repository '/tmp/flux-gitclone422736558'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
"
ts=2021-01-22T07:32:02.443152229Z caller=loop.go:108 component=sync-loop err="git repo not ready: git clone --mirror: fatal: Could not read from remote repository., full output:
 Cloning into bare repository '/tmp/flux-gitclone422736558'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
"

推荐答案

要使FluxCD能够访问私有Github存储库,它需要能够向Github进行身份验证。 您可以创建专用Flux用户,也可以使用您自己的用户。

这是使用Kubernetes密钥完成的,如下所示:https://fluxcd.io/docs/components/source/gitrepositories/#ssh-authentication

您可以看到这里支持的各种Git认证方式:https://fluxcd.io/docs/cmd/flux_create_secret_git/#examples

这篇关于首次访问后Fluxcd失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆