पूर्वापेक्षाएँ
Glasswall Halo को deploy करने की प्रक्रिया शुरू करने से पहले, सुनिश्चित करें कि आपके पास निम्नलिखित tools और resources इंस्टॉल और setup किए गए हैं।
आवश्यक tools
- Windows OS:
- Google Cloud SDK के लिए .bashrc को इस प्रकार मैप करें:
export PATH="/usr/lib/google-cloud-sdk/bin:$PATH"
- Mac OS:
- Google Cloud SDK के लिए .zprofile को इस प्रकार मैप करें:
export PATH=$PATH:/Users/user-name/google-cloud-sdk/bin
नोट: Google Cloud CLI का उपयोग करने या समस्या निवारण में सहायता के लिए, कृपया GKE documentation देखें।
आवश्यक Google संसाधन
1. GKE instance
- कम से कम कुल 8 vCPU और 32 GB RAM की अनुशंसा की जाती है।
- न्यूनतम node आकार 4 vCPU और 16 GB RAM है।
- production workloads के लिए कम से कम 2 nodes की अनुशंसा की जाती है।
- अनुशंसित GKE cluster release channel और version: stable release channel v1.27.13-GKE.1070002
- Enable the Filestore CSI driver cluster feature on your GKE cluster.
- यह cluster storage को GKE Filestore CSI driver का उपयोग करने की अनुमति देता है।
- नीचे दिए गए चरणों में, GKE cluster को इस नाम से संदर्भित किया गया है: gkename
नोट: Glasswall Halo ARM64 node VMs का समर्थन नहीं करता है।
GKE cluster बनाने के मार्गदर्शन के लिए, कृपया देखें:
- GKE cluster बनाएँ - Console
- GKE Cluster बनाएँ - CLI
- Google Kubernetes Engine Service - सर्वोत्तम प्रथाएँ
2. API सेवाएँ सक्षम करें
GKE क्लस्टर को सेट अप और प्रबंधित करने के लिए आवश्यक Google Cloud APIs (सक्षम) हैं:
- Google Kubernetes Engine API
- Compute Engine API
- Cloud Resource Manager API
- IAM Service Account Credentials API
- Cloud DNS API
- Cloud Storage API
- Cloud Filestore API
- Identity and access management (IAM) API
- Secrets Manager API
- Service Networking API
3. MongoDB डेटाबेस
MongoDB का उपयोग Glasswall Halo की content management policies, tally accumulator data, और asynchronous file processing तथा metrics के लिए डेटा संग्रहीत करने में किया जाता है।
MongoDB को Step 8 में दिखाए अनुसार, MongoDB Helm charts का उपयोग करके सीधे आपके cluster के अंदर deploy किया जाता है।
Note: नीचे दिए गए steps यह मानते हैं कि प्रत्येक resource उसी GCP project में है, जिसे project_id कहा गया है।
4. Glasswall Artifact Registry तक पहुंच
- आपको Glasswall's Artifact Registry तक पहुंचने के लिए एक token और token ID प्रदान किए जाते हैं।
- यह आपको अपने GKE cluster से सीधे container images और Helm charts pull करने की अनुमति देता है।
- नीचे दिए गए चरणों में, token और token ID को इस प्रकार संदर्भित किया जाएगा: token और token_id.
5. वेरिएबल असाइन करना
शुरू करने से पहले असाइन किए जाने वाले वेरिएबल:
ऊपर required tools में बताए गए वेरिएबल, Glasswall Halo installation शुरू करने से पहले असाइन किए जा सकते हैं।
नोट: आपको "..." को अपने मानों से बदलना होगा।
- Google GCP project ID: project_id="..."
- Google Kubernetes cluster name: gkename="..."
- Google Container Registry token ID: token_id="..."
- Google Container Registry token: token="..."