Troubleshooting Flux installations
There are a few useful commands that can help you to troubleshoot your installation; in this section, we’re going to find out what these are. So, let’s proceed as follows:
- To reconcile Flux changes in Flux, run the following command:
$ watch flux get images all --all-namespaces --kubeconfig /etc/rancher/k3s/k3s.yaml
This command is going to show new tags detected for your container, and how these new tags are set up in your HelmRelease
YAML definition file.
- To check the image repositories in Flux, run the following command:
$ flux get image repository app-demo --kubeconfig /etc/rancher/k3s/k3s.yaml --namespace=production
- To check the current policy in your cluster, run the following command:
$ flux get image policy app-demo --kubeconfig /etc/rancher/k3s/k3s.yaml --namespace=production
- To get all images configured in your Flux installation, run the following command:
$ flux get images all --all-namespaces ...