kubernetes:metallb
Összehasonlítás
A kiválasztott és az jelenlegi változat között az alábbi különbségek fordulnak elő:
| Következő változat | Előző változat | ||
| kubernetes:metallb [2026/03/31 02:01] – létrehozva riba.zoltan | kubernetes:metallb [2026/04/02 09:01] (aktuális) – riba.zoltan | ||
|---|---|---|---|
| Sor 25: | Sor 25: | ||
| | | ||
| - | # kubectl get configmap kube-proxy -n kube-system -o yaml | sed -e " | + | # kubectl get configmap kube-proxy -n kube-system -o yaml | sed -e " |
| Warning: resource configmaps/ | Warning: resource configmaps/ | ||
| configmap/ | configmap/ | ||
| + | </ | ||
| + | |||
| + | Telepítés | ||
| + | |||
| + | < | ||
| + | # kubectl apply -f https:// | ||
| + | namespace/ | ||
| + | customresourcedefinition.apiextensions.k8s.io/ | ||
| + | customresourcedefinition.apiextensions.k8s.io/ | ||
| + | customresourcedefinition.apiextensions.k8s.io/ | ||
| + | customresourcedefinition.apiextensions.k8s.io/ | ||
| + | customresourcedefinition.apiextensions.k8s.io/ | ||
| + | customresourcedefinition.apiextensions.k8s.io/ | ||
| + | customresourcedefinition.apiextensions.k8s.io/ | ||
| + | customresourcedefinition.apiextensions.k8s.io/ | ||
| + | customresourcedefinition.apiextensions.k8s.io/ | ||
| + | serviceaccount/ | ||
| + | serviceaccount/ | ||
| + | role.rbac.authorization.k8s.io/ | ||
| + | role.rbac.authorization.k8s.io/ | ||
| + | clusterrole.rbac.authorization.k8s.io/ | ||
| + | clusterrole.rbac.authorization.k8s.io/ | ||
| + | rolebinding.rbac.authorization.k8s.io/ | ||
| + | rolebinding.rbac.authorization.k8s.io/ | ||
| + | clusterrolebinding.rbac.authorization.k8s.io/ | ||
| + | clusterrolebinding.rbac.authorization.k8s.io/ | ||
| + | configmap/ | ||
| + | secret/ | ||
| + | service/ | ||
| + | deployment.apps/ | ||
| + | daemonset.apps/ | ||
| + | validatingwebhookconfiguration.admissionregistration.k8s.io/ | ||
| + | |||
| + | # kubectl get pods -n metallb-system | ||
| + | NAME READY | ||
| + | controller-57fdb754bc-ghj44 | ||
| + | speaker-5tbwc | ||
| + | speaker-5trkx | ||
| + | speaker-8vtr9 | ||
| + | speaker-8ww75 | ||
| + | speaker-gdcrt | ||
| + | speaker-htjm6 | ||
| + | speaker-jb2ql | ||
| + | speaker-mhl62 | ||
| + | speaker-s288f | ||
| + | speaker-t9nvg | ||
| + | speaker-vx558 | ||
| + | speaker-w5lwt | ||
| + | </ | ||
| + | |||
| + | IP pool létrehozása | ||
| + | |||
| + | < | ||
| + | # cat > metallb-ip-pool.yaml <<' | ||
| + | apiVersion: metallb.io/ | ||
| + | kind: IPAddressPool | ||
| + | metadata: | ||
| + | name: demo-pool | ||
| + | namespace: metallb-system | ||
| + | spec: | ||
| + | addresses: | ||
| + | - 192.168.110.201-192.168.110.210 | ||
| + | --- | ||
| + | apiVersion: metallb.io/ | ||
| + | kind: L2Advertisement | ||
| + | metadata: | ||
| + | name: demo-l2 | ||
| + | namespace: metallb-system | ||
| + | spec: {} | ||
| + | EOF | ||
| + | |||
| + | # kubectl apply -f metallb-ip-pool.yaml | ||
| + | ipaddresspool.metallb.io/ | ||
| + | l2advertisement.metallb.io/ | ||
| + | </ | ||
| + | |||
| + | Szolgáltatás létrehozása | ||
| + | |||
| + | < | ||
| + | # cat > service.yaml <<' | ||
| + | apiVersion: v1 | ||
| + | kind: Service | ||
| + | metadata: | ||
| + | name: demo-nginx-loadbalancer | ||
| + | spec: | ||
| + | type: LoadBalancer | ||
| + | selector: | ||
| + | app: demo-nginx | ||
| + | ports: | ||
| + | - port: 80 | ||
| + | targetPort: 80 | ||
| + | EOF | ||
| + | |||
| + | # kubectl apply -f service.yaml | ||
| + | service/ | ||
| </ | </ | ||
kubernetes/metallb.1774922489.txt.gz · legutóbbi módosítás: – Szerkesztő: riba.zoltan
