forked from org1/infra
x
This commit is contained in:
@@ -70,3 +70,14 @@ kubectl get pods -A -o wide
|
||||
|
||||
# Recent warnings/errors across namespaces
|
||||
kubectl get events -A --sort-by=.lastTimestamp | tail -n 50
|
||||
|
||||
# Request a fresh Git fetch. The source update triggers its dependent Kustomization.
|
||||
kubectl annotate -n flux-system --overwrite gitrepository/k3s \
|
||||
reconcile.fluxcd.io/requestedAt="$(date +%s)"
|
||||
|
||||
# Compare the latest fetched commit with the last successful application.
|
||||
kubectl get kustomization k3s -n flux-system -o jsonpath='applied: {.status.lastAppliedRevision}{"\nattempted: "}{.status.lastAttemptedRevision}{"\n"}'
|
||||
|
||||
# Show reconciliation conditions and recent errors/events.
|
||||
kubectl describe kustomization k3s -n flux-system
|
||||
|
||||
|
||||
@@ -5,3 +5,5 @@ resources:
|
||||
- connectivity-tester-gitrepository.yaml
|
||||
- sync.yaml
|
||||
- connectivity-tester-sync.yaml
|
||||
- legacy-ansible-gitrepository.yaml
|
||||
- legacy-ansible-sync.yaml
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: ansible
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m
|
||||
ref:
|
||||
branch: master
|
||||
suspend: true
|
||||
timeout: 60s
|
||||
url: https://gitea.rudolf.keenetic.link/admin/ansible.git
|
||||
@@ -0,0 +1,15 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: ansible
|
||||
namespace: flux-system
|
||||
spec:
|
||||
force: false
|
||||
interval: 10m
|
||||
path: ./k3s_rencher
|
||||
prune: false
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: ansible
|
||||
suspend: true
|
||||
wait: true
|
||||
@@ -101,7 +101,7 @@ rules:
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: agent-readonly-view
|
||||
name: agent-readonly-all-except-secrets
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
|
||||
Reference in New Issue
Block a user