Add environment config

This commit is contained in:
Khue Doan 2021-07-18 17:09:30 +07:00
parent 8321b55005
commit 46fb7b03f3
No known key found for this signature in database
GPG Key ID: 4C1A90A461B3C27B
4 changed files with 30 additions and 5 deletions

View File

@ -33,5 +33,6 @@ export CONTROL_PLANE_SERVERCLASS=any
export WORKER_SERVERCLASS=any
export KUBERNETES_VERSION=v1.20.1
export CONTROL_PLANE_PORT=6443
export CONTROL_PLANE_ENDPOINT=1.2.3.4
export CONTROL_PLANE_ENDPOINT=192.168.1.24
clusterctl config cluster management-plane -i sidero > management-plane.yaml
kubectl delete -f management-plane.yaml

View File

@ -0,0 +1,26 @@
apiVersion: metal.sidero.dev/v1alpha1
kind: Environment
metadata:
name: default
spec:
initrd:
url: https://github.com/talos-systems/talos/releases/download/v0.10.3/initramfs-amd64.xz
kernel:
args:
- console=tty0
- console=ttyS0
- consoleblank=0
- earlyprintk=ttyS0
- ima_appraise=fix
- ima_hash=sha512
- ima_template=ima-ng
- init_on_alloc=1
- initrd=initramfs.xz
- nvme_core.io_timeout=4294967295
- printk.devkmsg=on
- pti=on
- random.trust_cpu=on
- slab_nomerge=
- talos.config=http://192.168.1.19:8081/configdata?uuid=
- talos.platform=metal
url: https://github.com/talos-systems/talos/releases/download/v0.10.3/vmlinuz-amd64

View File

@ -27,7 +27,7 @@ metadata:
namespace: default
spec:
controlPlaneEndpoint:
host: 1.2.3.4
host: 192.168.1.24
port: 6443
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3

View File

@ -4,8 +4,6 @@ metadata:
finalizers:
- storage.finalizers.server.k8s.io
name: d7a60000-720c-7a4c-81d5-1db10300eae2
resourceVersion: "2263"
uid: 9dd66e1f-c1c4-4c99-98a7-2b50d675d362
spec:
accepted: true
configPatches:
@ -15,7 +13,7 @@ spec:
cpu:
manufacturer: Intel(R) Corporation
version: Intel(R) Core(TM) i5-6600T CPU @ 2.70GHz
hostname: 192.168.1.4
hostname: 192.168.1.24
system:
family: MATE
manufacturer: NEC