Add Templates to pretty config

This commit is contained in:
Nikolai Rodionov 2024-05-10 12:06:03 +02:00
parent 8eebe405b7
commit ddaaa33b71
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
7 changed files with 47 additions and 14 deletions

View File

@ -1,6 +1,6 @@
--- ---
apiVersion: cert-manager.io/v1 apiVersion: cert-manager.io/v1
kind: Issuer kind: ClusterIssuer
metadata: metadata:
name: {{ include "network-base.fullname" . }} name: {{ include "network-base.fullname" . }}
labels: labels:

View File

@ -0,0 +1,4 @@
---
url:
path: app.ingress.hosts
description: A hostname that will be used by ingress

View File

@ -151,6 +151,15 @@ charts:
- name: kubernetes-dashboard - name: kubernetes-dashboard
repository: kubernetes-dashboard repository: kubernetes-dashboard
extensions:
- name: add a pretty config mapper
source_dir: ./extensions/kubernetes-dashboard/
target_dir: config
patches:
- name: add a pretty config mapper
custom_command:
commands:
- mv ./config/config.yaml .
- rm -rf config
mirrors: mirrors:
- custom_command - custom_command

View File

@ -77,6 +77,8 @@ releases:
- kube-system/coredns - kube-system/coredns
- kube-system/cilium - kube-system/cilium
namespace: traefik-system namespace: traefik-system
values:
- ./values/traefik.yaml
- name: ippool - name: ippool
namespace: metallb-system namespace: metallb-system
@ -107,8 +109,11 @@ releases:
- name: kubernetes-dashboard - name: kubernetes-dashboard
chart: zot/kubernetes-dashboard chart: zot/kubernetes-dashboard
installed: false
version: 7.3.2 version: 7.3.2
namespace: applications namespace: applications
values:
- ./values/kubernetes-dashboard.yaml
needs: needs:
- kube-system/namespaces - kube-system/namespaces
- kube-system/coredns - kube-system/coredns

View File

@ -0,0 +1,18 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: test
roleRef: # points to the Role
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: admin
subjects: # points to the ServiceAccount
- kind: ServiceAccount
name: test
namespace: default
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: test
namespace: default

View File

@ -1,21 +1,16 @@
ingress: app:
ingress:
enabled: true enabled: true
hosts: hosts:
# Keep 'localhost' host only if you want to access Dashboard using 'kubectl port-forward ...' on: - dashboard.fe85db5c-fa78-4951-9641-7382be9c5884.badhouseplants.net
# https://localhost:8443
- localhost
# - kubernetes.dashboard.domain.com
ingressClassName: traefik ingressClassName: traefik
pathType: ImplementationSpecific pathType: ImplementationSpecific
path: / path: /
issuer: issuer:
name: selfsigned name: network-base
# Scope determines what kind of issuer annotation will be used on ingress resource
# - default - adds 'cert-manager.io/issuer'
# - cluster - adds 'cert-manager.io/cluster-issuer'
# - disabled - disables cert-manager annotations
scope: cluster scope: cluster
tls: tls:
secretName: "" secretName: ""
labels: {} labels: {}
annotations: {} annotations:
traefik.ingress.kubernetes.io/router.tls: "true"

View File

@ -0,0 +1,2 @@
globalArguments:
- "--serversTransport.insecureSkipVerify=true"