Files
flock/deploy/rbac/serviceaccount.yaml
Donavan Fritz c7fb159632
Build flock Image / build (push) Has been cancelled
agent: maintain NetworkUnavailable=False on owned nodes
When Calico shuts down on a flock-labeled node, calico-node sets
NetworkUnavailable=True with reason CalicoIsDown. Nothing replaces it,
so kubelet's NodeController applies node.kubernetes.io/network-
unavailable:NoSchedule and new pods can't land.

flock-agent now patches Status.Conditions every 60s with
NetworkUnavailable=False (reason=FlockReady). RBAC: nodes/status patch.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-24 23:11:47 -05:00

37 lines
828 B
YAML

apiVersion: v1
kind: ServiceAccount
metadata:
name: flock-agent
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: flock-agent
rules:
- apiGroups: ["flock.fritzlab.net"]
resources: ["nodeconfigs"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
- apiGroups: ["networking.k8s.io"]
resources: ["networkpolicies"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["nodes/status"]
verbs: ["patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: flock-agent
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: flock-agent
subjects:
- kind: ServiceAccount
name: flock-agent
namespace: kube-system