Got the following error, while trying to view tekton dashboard using the command kubectl port-forward -n tekton-pipelines service/tekton-dashboard 9097:9097
Error from server (NotFound): services "tekton-dashboard" not found
The problem was, tekton-dashboard was not installed.
The issue was resolved by running the following command
kubectl apply --filename https://storage.googleapis.com/tekton-releases/dashboard/latest/release-full.yaml
(The above command will install the tekton dashboard with read/write mode)
If you wish to Dashboard in read-only mode please use this
kubectl apply --filename https://storage.googleapis.com/tekton-releases/dashboard/latest/release.yaml