Compare commits
10 Commits
c53e620044
...
72cde7cce9
| Author | SHA1 | Date | |
|---|---|---|---|
| 72cde7cce9 | |||
|
|
2a3d59ef69 | ||
|
|
460eeb2fb1 | ||
|
|
b23d1398e9 | ||
|
|
26e045044b | ||
|
|
3c8656b457 | ||
|
|
a4fcf9b4b2 | ||
|
|
9a7f5b6855 | ||
|
|
fbc2a7b8a0 | ||
|
|
9eaeebbece |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- gotk-components.yaml
|
||||
- gotk-sync.yaml
|
||||
@ -19,16 +19,16 @@ resources:
|
||||
- ../../soft/pgadmin.yaml
|
||||
- ../../soft/coroot.yaml
|
||||
|
||||
# - install/ingress-nginx.yaml
|
||||
# - install/metrics-server.yaml
|
||||
# - install/cert-manager.yaml
|
||||
# - install/piraeus.yaml
|
||||
- install/ingress-nginx.yaml
|
||||
- install/metrics-server.yaml
|
||||
- install/cert-manager.yaml
|
||||
- install/piraeus.yaml
|
||||
# - install/nfs-provisioner.yaml
|
||||
# - install/monitoring.yaml
|
||||
- install/monitoring.yaml
|
||||
# - install/loki.yaml
|
||||
# - install/promtail.yaml
|
||||
# - install/kyverno.yaml
|
||||
# - install/cpng.yaml
|
||||
- install/cpng.yaml
|
||||
# - install/vswh.yaml
|
||||
# - install/stakater.yaml
|
||||
# - install/keycloak.yaml
|
||||
|
||||
@ -2,6 +2,7 @@ apiVersion: postgresql.cnpg.io/v1
|
||||
kind: Cluster
|
||||
metadata:
|
||||
name: cluster-example-custom
|
||||
namespace: default
|
||||
spec:
|
||||
instances: 1
|
||||
postgresql:
|
||||
|
||||
@ -4,7 +4,7 @@ metadata:
|
||||
name: data-volume
|
||||
namespace: default
|
||||
spec:
|
||||
storageClassName: piraeus-storage
|
||||
storageClassName: piraeus-storage-replicated
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
|
||||
@ -66,20 +66,22 @@ talosctl --context talos-default kubeconfig ~/.kube/talos-default.yaml --nodes 1
|
||||
## Общие команды
|
||||
|
||||
```bash
|
||||
talosctl --context talos-default cluster show
|
||||
talosctl --context talos-default processes -w --nodes 10.5.0.2
|
||||
talosctl --context talos-default --nodes 10.5.0.2 usage
|
||||
talosctl --context talos-default --nodes 10.5.0.2 pcap
|
||||
talosctl --context talos-default --nodes 10.5.0.2 netstat -nlpt
|
||||
CONTEXT=talos-demo
|
||||
|
||||
talosctl --context talos-default --nodes 10.5.0.2 edit machineconfig
|
||||
talosctl --context ${CONTEXT} cluster show
|
||||
talosctl --context ${CONTEXT} processes -w --nodes 10.5.0.2
|
||||
talosctl --context ${CONTEXT} --nodes 10.5.0.2 usage
|
||||
talosctl --context ${CONTEXT} --nodes 10.5.0.2 pcap
|
||||
talosctl --context ${CONTEXT} --nodes 10.5.0.2 netstat -nlpt
|
||||
|
||||
talosctl --context talos-default --nodes 10.5.0.2 get rd
|
||||
talosctl --context talos-default --nodes 10.5.0.2 get routes
|
||||
talosctl --context talos-default --nodes 10.5.0.2 get mounts
|
||||
talosctl --context talos-default --nodes 10.5.0.2 get cpu
|
||||
talosctl --context talos-default --nodes 10.5.0.2 get systemdisk
|
||||
talosctl --context talos-default --nodes 10.5.0.2 get etcdmember
|
||||
talosctl --context ${CONTEXT} --nodes 10.5.0.2 edit machineconfig
|
||||
|
||||
talosctl --context ${CONTEXT} --nodes 10.5.0.2 get rd
|
||||
talosctl --context ${CONTEXT} --nodes 10.5.0.2 get routes
|
||||
talosctl --context ${CONTEXT} --nodes 10.5.0.2 get mounts
|
||||
talosctl --context ${CONTEXT} --nodes 10.5.0.2 get cpu
|
||||
talosctl --context ${CONTEXT} --nodes 10.5.0.2 get systemdisk
|
||||
talosctl --context ${CONTEXT} --nodes 10.5.0.2 get etcdmember
|
||||
```
|
||||
|
||||
## Удаление
|
||||
|
||||
@ -4,4 +4,4 @@ metadata:
|
||||
name: pool
|
||||
spec:
|
||||
blocks:
|
||||
- cidr: 192.168.23.22/32
|
||||
- cidr: 192.168.3.201/32
|
||||
|
||||
@ -23,7 +23,7 @@ cgroup:
|
||||
autoMount:
|
||||
enabled: false
|
||||
hostRoot: /sys/fs/cgroup
|
||||
k8sServiceHost: 192.168.23.21
|
||||
k8sServiceHost: 192.168.3.200
|
||||
k8sServicePort: 6443
|
||||
l2announcements:
|
||||
enabled: true
|
||||
|
||||
33
talos-k8s/cluster.yaml
Normal file
33
talos-k8s/cluster.yaml
Normal file
@ -0,0 +1,33 @@
|
||||
clusterName: talos-demo
|
||||
k8sVersion: 1.33.2
|
||||
image: factory.talos.dev/metal-installer/6adc7e7fba27948460e2231e5272e88b85159da3f3db980551976bf9898ff64b:v1.10.4
|
||||
iface: ens18
|
||||
cpCount: 3
|
||||
workerCount: 2
|
||||
gateway: 192.168.3.1
|
||||
netmask: "24"
|
||||
dns1: 192.168.3.1
|
||||
dns2: 192.168.3.1
|
||||
ntp1: 1.ru.pool.ntp.org
|
||||
ntp2: 2.ru.pool.ntp.org
|
||||
ntp3: 3.ru.pool.ntp.org
|
||||
useVIP: true
|
||||
vipIP: 192.168.3.200
|
||||
useExtBalancer: false
|
||||
extBalancerIP: ""
|
||||
disk: /dev/sda
|
||||
useDRBD: true
|
||||
useZFS: false
|
||||
useSPL: false
|
||||
useVFIOPCI: false
|
||||
useVFIOIOMMU: false
|
||||
useOVS: false
|
||||
useMirrors: true
|
||||
useMaxPods: false
|
||||
cpIPs:
|
||||
- 192.168.3.53
|
||||
- 192.168.3.54
|
||||
- 192.168.3.55
|
||||
workerIPs:
|
||||
- 192.168.3.58
|
||||
- 192.168.3.59
|
||||
@ -2,10 +2,10 @@
|
||||
|
||||
VERB=${1:-"create"}
|
||||
|
||||
nodeip=pve1-nsk.bildme.ru
|
||||
nodeid=pve1-nsk
|
||||
poolid=test-vm
|
||||
vmid_template=777
|
||||
nodeip=pve1.p8o.ru
|
||||
nodeid=pve1
|
||||
poolid=test
|
||||
vmid_template=9995
|
||||
vmid=80
|
||||
vm_name=t8s-demo
|
||||
|
||||
@ -37,16 +37,16 @@ echo "${VERB} stand"
|
||||
[[ $VERB == "create" ]] && {
|
||||
for i in $(seq 1 "$controllers")
|
||||
do
|
||||
ssh root@${nodeip} "pvesh create /nodes/${nodeid}/qemu/${vmid_template}/clone --newid ${vmid}${i} --full false --name ${vm_name}-cp-${i}"
|
||||
ssh root@${nodeip} "pvesh set /nodes/${nodeid}/qemu/${vmid}${i}/config --cores 2 --vcpus 2 --memory 6144"
|
||||
ssh root@${nodeip} "pvesh create /nodes/${nodeid}/qemu/${vmid_template}/clone --newid ${vmid}${i} --full false --name ${vm_name}-cp-${i}.p8o.ru"
|
||||
ssh root@${nodeip} "pvesh set /nodes/${nodeid}/qemu/${vmid}${i}/config --cores 4 --vcpus 4 --memory 6144"
|
||||
ssh root@${nodeip} "pvesh set /pools/${poolid} --vms "${vmid}${i}""
|
||||
ssh root@${nodeip} "pvesh create /nodes/${nodeid}/qemu/${vmid}${i}/status/start"
|
||||
done
|
||||
|
||||
for i in $(seq 1 "$workers")
|
||||
do
|
||||
ssh root@${nodeip} "pvesh create /nodes/${nodeid}/qemu/${vmid_template}/clone --newid ${vmid}$((i + 4)) --full false --name ${vm_name}-w-${i}"
|
||||
ssh root@${nodeip} "pvesh set /nodes/${nodeid}/qemu/${vmid}$((i + 4))/config --cores 2 --vcpus 4 --memory 12288"
|
||||
ssh root@${nodeip} "pvesh create /nodes/${nodeid}/qemu/${vmid_template}/clone --newid ${vmid}$((i + 4)) --full false --name ${vm_name}-w-${i}.p8o.ru"
|
||||
ssh root@${nodeip} "pvesh set /nodes/${nodeid}/qemu/${vmid}$((i + 4))/config --cores 4 --vcpus 4 --memory 12288"
|
||||
ssh root@${nodeip} "pvesh set /pools/${poolid} --vms "${vmid}$((i + 4))""
|
||||
ssh root@${nodeip} "pvesh create /nodes/${nodeid}/qemu/${vmid}$((i + 4))/status/start"
|
||||
done
|
||||
|
||||
Loading…
Reference in New Issue
Block a user