Please help fill in this template with all the details to help others help you more efficiently. Use formatting blocks for code, config, logs and ensure to remove sensitive data.
Problem to solve
Kubernetes Dashboard not accessible after bootstraping flux and gitlab-agent:
From the DevTool i can see a 404 on gitlab-agent, pod and service resource.
Steps to reproduce
- bootstrap flux into cluster
- bootstrap gitlab-agent into cluster
Agent can connect an flux is syncing, so far.
Configuration
Enabled user access in the agent config:
agent/config.yaml
user_access:
access_as:
user: {}
projects:
- id: gsc/gitops
Applied ClusterRoleBindings to authorizies users:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: gitlab-user-view
roleRef:
name: view
kind: ClusterRole
apiGroup: rbac.authorization.k8s.io
subjects:
- name: gitlab:project_role:4791:maintainer
kind: Group
- name: gitlab:user:my.username
kind: UserName
- name: gitlab:group_role:504:developer
kind: Group
When bootstapping the agent again, e.g. for an upgrade, the agent config will be overwritten, sadly.
Thanks you for any advise.
Versions
- Self-managed
-
GitLab.com
SaaS - Dedicated
- Self-hosted Runners
Versions
- gitlab 1.7.9
- gitlab-agent 1.7.9
- k8s 1.30