Compare commits
2 Commits
1b629d8ea3
...
cde7d4b84b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cde7d4b84b | ||
|
|
dd5dfe10f7 |
@@ -1,14 +0,0 @@
|
|||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
||||||
kind: Kustomization
|
|
||||||
metadata:
|
|
||||||
name: alaska
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
interval: 10m
|
|
||||||
sourceRef:
|
|
||||||
kind: GitRepository
|
|
||||||
name: flux-system
|
|
||||||
path: ./manifests/alaska
|
|
||||||
prune: true
|
|
||||||
wait: true
|
|
||||||
timeout: 3m
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
||||||
kind: Kustomization
|
|
||||||
metadata:
|
|
||||||
name: core
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
interval: 10m
|
|
||||||
sourceRef:
|
|
||||||
kind: GitRepository
|
|
||||||
name: flux-system
|
|
||||||
path: ./manifests/core
|
|
||||||
prune: true
|
|
||||||
wait: true
|
|
||||||
timeout: 3m
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
||||||
kind: Kustomization
|
|
||||||
metadata:
|
|
||||||
name: nearle
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
interval: 10m
|
|
||||||
sourceRef:
|
|
||||||
kind: GitRepository
|
|
||||||
name: flux-system
|
|
||||||
path: ./manifests/nearle
|
|
||||||
prune: true
|
|
||||||
wait: true
|
|
||||||
timeout: 5m
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,27 +0,0 @@
|
|||||||
# This manifest was generated by flux. DO NOT EDIT.
|
|
||||||
---
|
|
||||||
apiVersion: source.toolkit.fluxcd.io/v1
|
|
||||||
kind: GitRepository
|
|
||||||
metadata:
|
|
||||||
name: flux-system
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
interval: 1m0s
|
|
||||||
ref:
|
|
||||||
branch: main
|
|
||||||
secretRef:
|
|
||||||
name: flux-system
|
|
||||||
url: https://gitapp.workolik.com/Nearle/kubernetes.git
|
|
||||||
---
|
|
||||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
||||||
kind: Kustomization
|
|
||||||
metadata:
|
|
||||||
name: flux-system
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
interval: 10m0s
|
|
||||||
path: ./clusters/production
|
|
||||||
prune: true
|
|
||||||
sourceRef:
|
|
||||||
kind: GitRepository
|
|
||||||
name: flux-system
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
resources:
|
|
||||||
- gotk-components.yaml
|
|
||||||
- gotk-sync.yaml
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
# The referenced Secret (gitea-webhook-token) is created directly on the
|
|
||||||
# cluster, not committed here - see the server-side command sequence.
|
|
||||||
apiVersion: notification.toolkit.fluxcd.io/v1
|
|
||||||
kind: Receiver
|
|
||||||
metadata:
|
|
||||||
name: gitea-receiver
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
# This Flux version's Receiver CRD has no "gitea" type - valid values are
|
|
||||||
# generic, generic-hmac, generic-oidc, github, gitlab, bitbucket, harbor,
|
|
||||||
# dockerhub, quay, gcr, nexus, acr, cdevents. "generic" accepts any POST
|
|
||||||
# to the hook path without payload/signature parsing, which is fine here:
|
|
||||||
# worst case is an early sync trigger, not a permission escalation.
|
|
||||||
type: generic
|
|
||||||
secretRef:
|
|
||||||
name: gitea-webhook-token
|
|
||||||
resources:
|
|
||||||
- apiVersion: source.toolkit.fluxcd.io/v1
|
|
||||||
kind: GitRepository
|
|
||||||
name: flux-system
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
# Exposes Flux's webhook-receiver directly via NodePort, bypassing
|
|
||||||
# Traefik/Ingress/DNS entirely - no A record needed. Selector matches the
|
|
||||||
# notification-controller pod labels from Flux's own bundled manifests; if
|
|
||||||
# `kubectl get endpoints webhook-receiver-external -n flux-system` comes up
|
|
||||||
# empty after this applies, check the pod's real labels with
|
|
||||||
# `kubectl get pods -n flux-system --show-labels` and fix the selector below.
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: webhook-receiver-external
|
|
||||||
namespace: flux-system
|
|
||||||
spec:
|
|
||||||
type: NodePort
|
|
||||||
selector:
|
|
||||||
app: notification-controller
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 9292
|
|
||||||
protocol: TCP
|
|
||||||
@@ -49,14 +49,16 @@ kubectl get svc -n kubernetes-dashboard
|
|||||||
|
|
||||||
### Login to Dashboard
|
### Login to Dashboard
|
||||||
|
|
||||||
The dashboard is configured with `--enable-skip-login`, so you can skip the login screen. However, if you need to authenticate:
|
The dashboard is configured with `--enable-skip-login`, so it opens straight to the UI - no token needed to look around.
|
||||||
|
|
||||||
1. Get the token:
|
Skip-login runs as the dashboard's own `kubernetes-dashboard` ServiceAccount, which is **view-only** (get/list/watch). If you need to edit, delete, or exec into something:
|
||||||
|
|
||||||
|
1. Get an admin token:
|
||||||
```bash
|
```bash
|
||||||
kubectl -n kubernetes-dashboard create token admin-user
|
kubectl -n kubernetes-dashboard create token admin-user
|
||||||
```
|
```
|
||||||
|
|
||||||
2. Copy the token and paste it in the dashboard login screen.
|
2. Click "Sign In" on the dashboard and paste the token.
|
||||||
|
|
||||||
### What You Can See
|
### What You Can See
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,13 @@ spec:
|
|||||||
args:
|
args:
|
||||||
- --auto-generate-certificates
|
- --auto-generate-certificates
|
||||||
- --namespace=kubernetes-dashboard
|
- --namespace=kubernetes-dashboard
|
||||||
|
- --enable-skip-login
|
||||||
|
# Skip-login uses the "kubernetes-dashboard" ServiceAccount below,
|
||||||
|
# which only has get/list/watch (view-only) - so opening the
|
||||||
|
# dashboard needs no token, but it can't edit/delete/exec.
|
||||||
|
# For write access, still log in with the admin-user token
|
||||||
|
# (kubectl -n kubernetes-dashboard create token admin-user).
|
||||||
|
#
|
||||||
# --token-ttl=0 was tried here to disable the 15-min idle
|
# --token-ttl=0 was tried here to disable the 15-min idle
|
||||||
# timeout, but login broke immediately after that pod came up -
|
# timeout, but login broke immediately after that pod came up -
|
||||||
# in this dashboard version, 0 appears to mean "expire
|
# in this dashboard version, 0 appears to mean "expire
|
||||||
|
|||||||
Reference in New Issue
Block a user