Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions addons/bootstrap/portal-reader/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- portal-reader.yaml
31 changes: 31 additions & 0 deletions addons/bootstrap/portal-reader/base/portal-reader.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Read access for the portal ops portal. portal's per-account spoke IAM role is
# mapped to the "portal-reader" group via an EKS access entry (kubernetes_groups,
# wired in landing-zone fleet/aws/cluster-stack). This binds that group to the
# minimal read portal needs on a managed cluster: the eks-agent-platform
# Tenant/Platform CRs (its tenant-inventory watcher) and nodes (best-effort node
# count in the connection test). No Secrets, no workloads — strictly the surface
# portal reads, replacing the broad AmazonEKSAdminViewPolicy.
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: portal-reader
rules:
- apiGroups: ["platform.nanohype.dev"]
resources: ["tenants", "platforms"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: portal-reader
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: portal-reader
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: portal-reader
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../base
4 changes: 4 additions & 0 deletions applicationsets/addons-bootstrap-kustomize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ spec:
namespace: kube-system
path: addons/bootstrap/priority-classes
syncWave: "2"
- appName: portal-reader
namespace: kube-system
path: addons/bootstrap/portal-reader
syncWave: "2"
template:
metadata:
name: '{{ .appName }}'
Expand Down