Compare commits
22
Commits
c53e620044
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
93fd730f7f | ||
|
|
68bca39ba9 | ||
|
|
2756ef17fd | ||
|
|
42eb844dd9 | ||
|
|
6b8ff9d1fe | ||
|
|
e308d76352 | ||
|
|
4e6356d57c | ||
|
|
71603a6280 | ||
|
|
9bee4fae1e | ||
|
|
339836c4fe | ||
|
|
a0daa26405 | ||
|
|
cc49d18478 | ||
|
|
72cde7cce9 | ||
|
|
2a3d59ef69 | ||
|
|
460eeb2fb1 | ||
|
|
b23d1398e9 | ||
|
|
26e045044b | ||
|
|
3c8656b457 | ||
|
|
a4fcf9b4b2 | ||
|
|
9a7f5b6855 | ||
|
|
fbc2a7b8a0 | ||
|
|
9eaeebbece |
@@ -1,9 +1,8 @@
|
||||
# Boot
|
||||
|
||||
```bash
|
||||
flux bootstrap git --url=https://git.realmanual.ru/pub/courses/talos-kurs.git --token-auth --path=talos-k8s-flux/clusters/t8s-demo
|
||||
flux bootstrap git --url=https://gitea.p8o.ru/aprokopenko/talos-kurs --token-auth --path=talos-k8s-flux/clusters/t8s-demo
|
||||
```
|
||||
|
||||
## Hacks
|
||||
|
||||
linstor
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
# This manifest was generated by flux. DO NOT EDIT.
|
||||
# Flux Version: v2.6.2
|
||||
# Flux Version: v2.6.4
|
||||
# Components: source-controller,kustomize-controller,helm-controller,notification-controller
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
@@ -8,7 +8,7 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
pod-security.kubernetes.io/warn: restricted
|
||||
pod-security.kubernetes.io/warn-version: latest
|
||||
name: flux-system
|
||||
@@ -19,7 +19,7 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: allow-egress
|
||||
namespace: flux-system
|
||||
spec:
|
||||
@@ -39,7 +39,7 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: allow-scraping
|
||||
namespace: flux-system
|
||||
spec:
|
||||
@@ -59,7 +59,7 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: allow-webhooks
|
||||
namespace: flux-system
|
||||
spec:
|
||||
@@ -78,7 +78,7 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: critical-pods-flux-system
|
||||
namespace: flux-system
|
||||
spec:
|
||||
@@ -98,7 +98,7 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: crd-controller-flux-system
|
||||
rules:
|
||||
- apiGroups:
|
||||
@@ -198,7 +198,7 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
||||
rbac.authorization.k8s.io/aggregate-to-edit: "true"
|
||||
name: flux-edit-flux-system
|
||||
@@ -224,7 +224,7 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
rbac.authorization.k8s.io/aggregate-to-admin: "true"
|
||||
rbac.authorization.k8s.io/aggregate-to-edit: "true"
|
||||
rbac.authorization.k8s.io/aggregate-to-view: "true"
|
||||
@@ -249,7 +249,7 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: cluster-reconciler-flux-system
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
@@ -269,7 +269,7 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: crd-controller-flux-system
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
@@ -304,7 +304,7 @@ metadata:
|
||||
app.kubernetes.io/component: source-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: buckets.source.toolkit.fluxcd.io
|
||||
spec:
|
||||
group: source.toolkit.fluxcd.io
|
||||
@@ -1293,7 +1293,7 @@ metadata:
|
||||
app.kubernetes.io/component: source-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: gitrepositories.source.toolkit.fluxcd.io
|
||||
spec:
|
||||
group: source.toolkit.fluxcd.io
|
||||
@@ -2571,7 +2571,7 @@ metadata:
|
||||
app.kubernetes.io/component: source-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: helmcharts.source.toolkit.fluxcd.io
|
||||
spec:
|
||||
group: source.toolkit.fluxcd.io
|
||||
@@ -3552,7 +3552,7 @@ metadata:
|
||||
app.kubernetes.io/component: source-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: helmrepositories.source.toolkit.fluxcd.io
|
||||
spec:
|
||||
group: source.toolkit.fluxcd.io
|
||||
@@ -4401,7 +4401,7 @@ metadata:
|
||||
app.kubernetes.io/component: source-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: ocirepositories.source.toolkit.fluxcd.io
|
||||
spec:
|
||||
group: source.toolkit.fluxcd.io
|
||||
@@ -5225,7 +5225,7 @@ metadata:
|
||||
app.kubernetes.io/component: source-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: source-controller
|
||||
namespace: flux-system
|
||||
---
|
||||
@@ -5236,7 +5236,7 @@ metadata:
|
||||
app.kubernetes.io/component: source-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
control-plane: controller
|
||||
name: source-controller
|
||||
namespace: flux-system
|
||||
@@ -5257,7 +5257,7 @@ metadata:
|
||||
app.kubernetes.io/component: source-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
control-plane: controller
|
||||
name: source-controller
|
||||
namespace: flux-system
|
||||
@@ -5302,7 +5302,7 @@ spec:
|
||||
resourceFieldRef:
|
||||
containerName: manager
|
||||
resource: limits.memory
|
||||
image: ghcr.io/fluxcd/source-controller:v1.6.1
|
||||
image: ghcr.io/fluxcd/source-controller:v1.6.2
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
@@ -5366,7 +5366,7 @@ metadata:
|
||||
app.kubernetes.io/component: kustomize-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: kustomizations.kustomize.toolkit.fluxcd.io
|
||||
spec:
|
||||
group: kustomize.toolkit.fluxcd.io
|
||||
@@ -7153,7 +7153,7 @@ metadata:
|
||||
app.kubernetes.io/component: kustomize-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: kustomize-controller
|
||||
namespace: flux-system
|
||||
---
|
||||
@@ -7164,7 +7164,7 @@ metadata:
|
||||
app.kubernetes.io/component: kustomize-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
control-plane: controller
|
||||
name: kustomize-controller
|
||||
namespace: flux-system
|
||||
@@ -7203,7 +7203,7 @@ spec:
|
||||
resourceFieldRef:
|
||||
containerName: manager
|
||||
resource: limits.memory
|
||||
image: ghcr.io/fluxcd/kustomize-controller:v1.6.0
|
||||
image: ghcr.io/fluxcd/kustomize-controller:v1.6.1
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
@@ -7260,7 +7260,7 @@ metadata:
|
||||
app.kubernetes.io/component: helm-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: helmreleases.helm.toolkit.fluxcd.io
|
||||
spec:
|
||||
group: helm.toolkit.fluxcd.io
|
||||
@@ -10955,7 +10955,7 @@ metadata:
|
||||
app.kubernetes.io/component: helm-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: helm-controller
|
||||
namespace: flux-system
|
||||
---
|
||||
@@ -10966,7 +10966,7 @@ metadata:
|
||||
app.kubernetes.io/component: helm-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
control-plane: controller
|
||||
name: helm-controller
|
||||
namespace: flux-system
|
||||
@@ -11062,7 +11062,7 @@ metadata:
|
||||
app.kubernetes.io/component: notification-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: alerts.notification.toolkit.fluxcd.io
|
||||
spec:
|
||||
group: notification.toolkit.fluxcd.io
|
||||
@@ -11644,7 +11644,7 @@ metadata:
|
||||
app.kubernetes.io/component: notification-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: providers.notification.toolkit.fluxcd.io
|
||||
spec:
|
||||
group: notification.toolkit.fluxcd.io
|
||||
@@ -12205,7 +12205,7 @@ metadata:
|
||||
app.kubernetes.io/component: notification-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: receivers.notification.toolkit.fluxcd.io
|
||||
spec:
|
||||
group: notification.toolkit.fluxcd.io
|
||||
@@ -12887,7 +12887,7 @@ metadata:
|
||||
app.kubernetes.io/component: notification-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
name: notification-controller
|
||||
namespace: flux-system
|
||||
---
|
||||
@@ -12898,7 +12898,7 @@ metadata:
|
||||
app.kubernetes.io/component: notification-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
control-plane: controller
|
||||
name: notification-controller
|
||||
namespace: flux-system
|
||||
@@ -12919,7 +12919,7 @@ metadata:
|
||||
app.kubernetes.io/component: notification-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
control-plane: controller
|
||||
name: webhook-receiver
|
||||
namespace: flux-system
|
||||
@@ -12940,7 +12940,7 @@ metadata:
|
||||
app.kubernetes.io/component: notification-controller
|
||||
app.kubernetes.io/instance: flux-system
|
||||
app.kubernetes.io/part-of: flux
|
||||
app.kubernetes.io/version: v2.6.2
|
||||
app.kubernetes.io/version: v2.6.4
|
||||
control-plane: controller
|
||||
name: notification-controller
|
||||
namespace: flux-system
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# This manifest was generated by flux. DO NOT EDIT.
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: GitRepository
|
||||
metadata:
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 1m0s
|
||||
ref:
|
||||
branch: main
|
||||
secretRef:
|
||||
name: flux-system
|
||||
url: https://gitea.p8o.ru/aprokopenko/talos-kurs
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 10m0s
|
||||
path: ./talos-k8s-flux/clusters/t8s-demo
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- gotk-components.yaml
|
||||
- gotk-sync.yaml
|
||||
@@ -11,7 +11,7 @@ spec:
|
||||
branch: main
|
||||
secretRef:
|
||||
name: flux-system
|
||||
url: https://git.realmanual.ru/pub/courses/talos-kurs.git
|
||||
url: https://gitea.p8o.ru/aprokopenko/talos-kurs.git
|
||||
---
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
|
||||
@@ -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/loki.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
|
||||
@@ -68,7 +68,7 @@ metadata:
|
||||
namespace: default
|
||||
spec:
|
||||
rules:
|
||||
- host: test.talos.loc
|
||||
- host: talos-nginx.p8o.ru
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
|
||||
@@ -47,7 +47,7 @@ metadata:
|
||||
namespace: default
|
||||
spec:
|
||||
rules:
|
||||
- host: test.talos.loc
|
||||
- host: talos-nginx.p8o.ru
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
|
||||
+16
-14
@@ -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
|
||||
```
|
||||
|
||||
## Удаление
|
||||
@@ -97,7 +99,7 @@ rm ~/.talos/config
|
||||
```bash
|
||||
talosctl gen secrets -o secrets.yaml
|
||||
|
||||
talosctl gen config --kubernetes-version 1.33.2 --with-secrets secrets.yaml talos-demo https://192.168.23.57:6443 --config-patch @patch.yaml
|
||||
talosctl gen config --kubernetes-version 1.33.3 --with-secrets secrets.yaml talos-demo https://192.168.23.57:6443 --config-patch @patch.yaml
|
||||
|
||||
talosctl machineconfig patch controlplane.yaml --patch @cp1.patch --output cp1.yaml
|
||||
talosctl machineconfig patch controlplane.yaml --patch @cp2.patch --output cp2.yaml
|
||||
@@ -178,5 +180,5 @@ talosctl --talosconfig talosconfig upgrade --nodes 192.168.23.56 --image ${IMAGE
|
||||
## Upgrade k8s
|
||||
|
||||
```bash
|
||||
talosctl --nodes 192.168.23.100 --talosconfig talosconfig upgrade-k8s --to 1.33.2
|
||||
talosctl --nodes 192.168.23.100 --talosconfig talosconfig upgrade-k8s --to 1.33.3
|
||||
```
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
clusterName: talos-demo
|
||||
k8sVersion: 1.33.3
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user