-
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.
refactor: Move matchbox config into servonet provisioning
- Loading branch information
1 parent
32cb5b5
commit 54a95bd
Showing
16 changed files
with
200 additions
and
68 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
--- | ||
clusterName: servonet | ||
endpoint: https://10.4.3.1:6443 | ||
domain: servonet.lan | ||
|
||
talosVersion: v1.7.5 | ||
kubernetesVersion: v1.30.2 | ||
|
||
allowSchedulingOnControlPlanes: true | ||
|
||
cniConfig: | ||
name: none | ||
|
||
nodes: | ||
- hostname: tom-364c | ||
nameservers: | ||
- 10.4.1.1 | ||
ipAddress: "10.4.3.32" | ||
controlPlane: true | ||
installDisk: /dev/sda | ||
networkInterfaces: | ||
- interface: eth0 | ||
dhcp: true | ||
addresses: | ||
- 10.4.3.32 | ||
routes: | ||
- network: 0.0.0.0/0 # The route's network (destination). | ||
gateway: 10.4.1.1 # The route's gateway (if empty, creates link scope route). | ||
metric: 1024 # The optional metric for the route. | ||
vip: | ||
ip: "10.4.3.1" | ||
- hostname: tom-3a11 | ||
ipAddress: "10.4.3.33" | ||
controlPlane: true | ||
installDisk: /dev/sda | ||
networkInterfaces: | ||
- interface: eth0 | ||
dhcp: true | ||
addresses: | ||
- 10.4.3.33 | ||
routes: | ||
- network: 0.0.0.0/0 # The route's network (destination). | ||
gateway: 10.4.1.1 # The route's gateway (if empty, creates link scope route). | ||
metric: 1024 # The optional metric for the route. | ||
vip: | ||
ip: "10.4.3.1" | ||
- hostname: tom-3e67 | ||
ipAddress: "10.4.3.34" | ||
controlPlane: true | ||
installDisk: /dev/mmcblk1 | ||
networkInterfaces: | ||
- interface: eth0 | ||
dhcp: true | ||
addresses: | ||
- 10.4.3.34 | ||
routes: | ||
- network: 0.0.0.0/0 # The route's network (destination). | ||
gateway: 10.4.1.1 # The route's gateway (if empty, creates link scope route). | ||
metric: 1024 # The optional metric for the route. | ||
vip: | ||
ip: "10.4.3.1" | ||
patches: | ||
# Enable kubePrism | ||
- |- | ||
machine: | ||
features: | ||
kubePrism: | ||
enabled: true | ||
port: 7445 | ||
# Install cillium | ||
- |- | ||
cluster: | ||
inlineManifests: | ||
- name: cilium-install | ||
contents: | | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: cilium-install | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: cluster-admin | ||
subjects: | ||
- kind: ServiceAccount | ||
name: cilium-install | ||
namespace: kube-system | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: cilium-install | ||
namespace: kube-system | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: cilium-install | ||
namespace: kube-system | ||
spec: | ||
backoffLimit: 10 | ||
template: | ||
metadata: | ||
labels: | ||
app: cilium-install | ||
spec: | ||
restartPolicy: OnFailure | ||
tolerations: | ||
- operator: Exists | ||
- effect: NoSchedule | ||
operator: Exists | ||
- effect: NoExecute | ||
operator: Exists | ||
- effect: PreferNoSchedule | ||
operator: Exists | ||
- key: node-role.kubernetes.io/control-plane | ||
operator: Exists | ||
effect: NoSchedule | ||
- key: node-role.kubernetes.io/control-plane | ||
operator: Exists | ||
effect: NoExecute | ||
- key: node-role.kubernetes.io/control-plane | ||
operator: Exists | ||
effect: PreferNoSchedule | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: node-role.kubernetes.io/control-plane | ||
operator: Exists | ||
serviceAccount: cilium-install | ||
serviceAccountName: cilium-install | ||
hostNetwork: true | ||
containers: | ||
- name: cilium-install | ||
image: quay.io/cilium/cilium-cli-ci:latest | ||
env: | ||
- name: KUBERNETES_SERVICE_HOST | ||
valueFrom: | ||
fieldRef: | ||
apiVersion: v1 | ||
fieldPath: status.podIP | ||
- name: KUBERNETES_SERVICE_PORT | ||
value: "6443" | ||
command: | ||
- cilium | ||
- install | ||
- --set ipam.mode=kubernetes | ||
- --set kubeProxyReplacement=true | ||
- --set securityContext.capabilities.ciliumAgent="{CHOWN,KILL,NET_ADMIN,NET_RAW,IPC_LOCK,SYS_ADMIN,SYS_RESOURCE,DAC_OVERRIDE,FOWNER,SETGID,SETUID}" | ||
- --set securityContext.capabilities.cleanCiliumState="{NET_ADMIN,SYS_ADMIN,SYS_RESOURCE}" | ||
- --set cgroup.autoMount.enabled=false | ||
- --set cgroup.hostRoot=/sys/fs/cgroup | ||
- --set k8sServiceHost=localhost | ||
- --set k8sServicePort=7445 |
File renamed without changes.
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