forked from radius-project/radius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dashboard to Radius installation and rad run (radius-project#7186)
# Description * Add dashboard install to `rad install kubernetes` and `rad init` * Add dashboard portforwarding to `rad run` ## Type of change <!-- Please select **one** of the following options that describes your change and delete the others. Clearly identifying the type of change you are making will help us review your PR faster, and is used in authoring release notes. If you are making a bug fix or functionality change to Radius and do not have an associated issue link please create one now. --> - This pull request adds or changes features of Radius and has an approved issue (issue link required). <!-- Please update the following to link the associated issue. This is required for some kinds of changes (see above). --> Fixes: radius-project#6951 --------- Signed-off-by: willdavsmith <[email protected]>
- Loading branch information
1 parent
2526a8e
commit db82383
Showing
16 changed files
with
569 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{{- if .Values.dashboard.enabled }} | ||
{{- $appversion := include "radius.versiontag" . }} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dashboard | ||
namespace: "{{ .Release.Namespace }}" | ||
labels: | ||
control-plane: dashboard | ||
app.kubernetes.io/name: dashboard | ||
app.kubernetes.io/part-of: radius | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: dashboard | ||
template: | ||
metadata: | ||
labels: | ||
control-plane: dashboard | ||
app.kubernetes.io/name: dashboard | ||
app.kubernetes.io/part-of: radius | ||
spec: | ||
serviceAccountName: dashboard | ||
containers: | ||
- name: dashboard | ||
image: "{{ .Values.dashboard.image }}:{{ .Values.dashboard.tag | default $appversion }}" | ||
imagePullPolicy: Always | ||
ports: | ||
- name: http | ||
containerPort: {{ .Values.dashboard.containerPort }} | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{{- if .Values.dashboard.enabled }} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: dashboard | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/name: dashboard | ||
app.kubernetes.io/part-of: radius | ||
rules: | ||
- apiGroups: ['api.ucp.dev'] | ||
resources: ['*'] | ||
verbs: ['get', 'list'] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: dashboard | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/name: dashboard | ||
app.kubernetes.io/part-of: radius | ||
subjects: | ||
- kind: ServiceAccount | ||
name: dashboard | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: dashboard | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{- if .Values.dashboard.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: dashboard | ||
namespace: "{{ .Release.Namespace }}" | ||
labels: | ||
app.kubernetes.io/name: dashboard | ||
app.kubernetes.io/part-of: radius | ||
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
targetPort: {{ .Values.dashboard.containerPort }} | ||
selector: | ||
app.kubernetes.io/name: dashboard | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{{- if .Values.dashboard.enabled }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: dashboard | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/name: dashboard | ||
app.kubernetes.io/part-of: radius | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.