Kubernetes
Deploy the data plane with the Helm chart (or plain manifests, or as a sidecar), with a control plane in the cluster if you want one: install, check, upgrade and uninstall.
أي إصدار ستثبّت
الإصدار العام هو إصدار تطوير باسم 0.3.0-dev. يبقى اسمه ثابتاً: كل نشر يحلّ محل السابق، ويميّز معرّف البناء بين بنائين. لا يوجد إصدار مستقر بعد: لن يُنشر إلا بعد اختبار كل نظام وكل حزمة من البداية إلى النهاية. لذلك تثبّت الأوامر في هذه الصفحة من قناة dev. قد يحتوي إصدار التطوير على أخطاء: جرّبه على موقع اختبار قبل أن تعتمد عليه.
At a glance
- Kubernetes 1.25 or later. The data plane is deployed as a Deployment or a DaemonSet, stateless; the policy comes from Helm values (a hot-reloaded ConfigMap) or from a control plane.
- Pods run unprivileged (user 65532), with a read-only root filesystem, all capabilities dropped and the RuntimeDefault seccomp profile.
- The chart, the manifests and the sidecar example are in the deploy folder of your ToutWAF distribution, not in the public repository.
- The in-cluster control plane is a single instance with SQLite (PostgreSQL is not implemented).
The commands, step by step
ثبّت باستخدام Helm
ينشر مستوى البيانات كـ ingress، ومعه مستوى تحكم داخل العنقود إن رغبت. المخطط وملفات البيان (بما فيها وضع sidecar) في مجلد deploy بتوزيعة ToutWAF لديك، لا في المستودع العام الذي لا يضم سوى البرامج والمثبّتات. والمشغّل مجرد CRD وهيكل أولي.
helm install toutwaf ./deploy/helm/toutwaf --namespace toutwaf --create-namespace -f my-values.yamlتحقق من الحاويات (pods) وافتح وحدة التحكم
kubectl -n toutwaf get pods
kubectl -n toutwaf port-forward svc/toutwaf-cp 9443:9443الترقية (الحاويات)
أنشئ نسخة احتياطية أولاً. لا يمكن لزر التحديث في وحدة التحكم أن يعمل داخل حاوية: استبدل الملفات الثنائية في مجلد bin (أو الصورة حين تُنشر واحدة) وأعد البناء؛ وتبقى الأحجام، أي بياناتك.
helm upgrade toutwaf ./deploy/helm/toutwaf --namespace toutwaf -f my-values.yamlإلغاء التثبيت
تزيل الكتلة الأولى الخدمات والملفات التنفيذية وقواعد جدار الحماية التي أضافها ToutWAF وتُبقي بياناتك. وتحذف الثانية أيضاً الإعدادات والبيانات والسجلات.
helm uninstall toutwaf --namespace toutwafkubectl delete namespace toutwafWhat is not verified
We prefer to say it plainly.
- The Kubernetes operator is a skeleton: the resource definitions (CRDs), the RBAC and a translation library exist, but no controller binary or operator image is published. Use the Helm “standalone” policy source or a control plane.
- The resource sizes in the sidecar example are example values, not a sizing guarantee.