Difference between revisions of "PEC-AD/Current/WWEPEGuide/Deploy"
(3 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
− | |sectionHeading= | + | |sectionHeading=Deploying in GKE |
− | |anchor= | + | |anchor=DeployGKE |
|alignment=Vertical | |alignment=Vertical | ||
− | |structuredtext==== | + | |structuredtext====Prerequisites for GKE=== |
− | === | + | ====Secret configuration for pulling image==== |
− | + | =====Connect to the cluster using Cloud SDK===== | |
− | |||
− | |||
− | |||
− | ===Connect to the cluster using Cloud SDK=== | ||
Use the following command to connect to the cluster from the deployment host: | Use the following command to connect to the cluster from the deployment host: | ||
<source lang="Emacs"> | <source lang="Emacs"> | ||
gcloud container clusters get-credentials <gke cluster> --zone <gke zone> --project <gcp project> | gcloud container clusters get-credentials <gke cluster> --zone <gke zone> --project <gcp project> | ||
</source> | </source> | ||
− | ===Create the secret for accessing the jfrog registry=== | + | =====Create the secret for accessing the jfrog registry===== |
Use the following command to create the secret: | Use the following command to create the secret: | ||
<source lang="Emacs"> | <source lang="Emacs"> | ||
kubectl create secret docker-registry mycred | kubectl create secret docker-registry mycred | ||
− | --docker- | + | --docker-<container-registry> |
− | --docker-username=< | + | --docker-username=<username> |
--docker-password=<API key from jfrog> | --docker-password=<API key from jfrog> | ||
--docker-email=<emailid> -n wwe | --docker-email=<emailid> -n wwe | ||
</source> | </source> | ||
− | + | ===Environment Preparation for GKE=== | |
− | + | ====Download the Helm charts==== | |
− | |||
− | |||
− | |||
− | |||
<ol> | <ol> | ||
− | <li>Download the WWE Helm charts from following repository: | + | <li>{{Link-AnywhereElse|product=PrivateEdition|version=Current|manual=PEGuide|topic=ManageServices|display text=Download}} the WWE Helm charts from following repository: https://pureengageuse1.jfrog.io/ui/login/ |
− | |||
− | |||
− | https:// | ||
− | |||
</li> | </li> | ||
<li>Create the '''override_values.yaml''' with appropriate overrides from the following sample file for a sample deployment: | <li>Create the '''override_values.yaml''' with appropriate overrides from the following sample file for a sample deployment: | ||
Line 55: | Line 43: | ||
<li>Set the value for '''gwsUrl''' applying the external gws url.</li> | <li>Set the value for '''gwsUrl''' applying the external gws url.</li> | ||
</ol> | </ol> | ||
− | + | ===WWE installation on GKE=== | |
− | + | ====Log in to GKE cluster==== | |
− | |||
− | |||
− | |||
− | |||
Use the following command to connect to the GKE cluster using Cloud SDK from the deployment host: | Use the following command to connect to the GKE cluster using Cloud SDK from the deployment host: | ||
<source lang="Emacs"> | <source lang="Emacs"> | ||
gcloud container clusters get-credentials <gke cluster> --zone <gke zone> --project <gcp project> | gcloud container clusters get-credentials <gke cluster> --zone <gke zone> --project <gcp project> | ||
</source> | </source> | ||
− | ===Create Namespace for WWE=== | + | ====Create Namespace for WWE==== |
Use the following command to create a new namespace for WWE: | Use the following command to create a new namespace for WWE: | ||
<source lang="Emacs"> | <source lang="Emacs"> | ||
kubectl create namespace wwe | kubectl create namespace wwe | ||
</source> | </source> | ||
− | ===Render the templates=== | + | ====Render the templates==== |
To verify whether resources are getting created without issue, execute the following command to render templates without installing: | To verify whether resources are getting created without issue, execute the following command to render templates without installing: | ||
<source lang="Emacs"> | <source lang="Emacs"> | ||
Line 77: | Line 61: | ||
Review the displayed Kubernetes descriptors. The values are generated from Helm templates and are based on settings from the '''values.yaml''' and '''values-test.yaml''' files. Ensure that no errors are displayed. Later, you will apply this configuration to your Kubernetes cluster. | Review the displayed Kubernetes descriptors. The values are generated from Helm templates and are based on settings from the '''values.yaml''' and '''values-test.yaml''' files. Ensure that no errors are displayed. Later, you will apply this configuration to your Kubernetes cluster. | ||
− | ===Deploy WWE=== | + | ====Deploy WWE==== |
Use the following command to deploy WWE: | Use the following command to deploy WWE: | ||
<source lang="Emacs"> | <source lang="Emacs"> | ||
Line 84: | Line 68: | ||
This process takes several minutes. Wait until all objects are created and allocated, and the Kubernetes descriptors applied to the environment appear. | This process takes several minutes. Wait until all objects are created and allocated, and the Kubernetes descriptors applied to the environment appear. | ||
− | ===Verify the installation=== | + | ====Verify the installation==== |
Use the following command to check the installed Helm release: | Use the following command to check the installed Helm release: | ||
<source lang="Emacs"> | <source lang="Emacs"> | ||
Line 96: | Line 80: | ||
<nowiki>http://wwe.<host></nowiki> | <nowiki>http://wwe.<host></nowiki> | ||
− | + | ===Provisioning WWE Ingress on GKE=== | |
− | + | ====Create or download the wwe-ingress.yaml file==== | |
− | |||
− | |||
− | |||
− | |||
Use the following example template to create the '''wwe-ingress.yaml''' Ingress file for WWE. In this example template, the namespace is set specifically to '''wwe'''. Adjust the values needed for your deployment. | Use the following example template to create the '''wwe-ingress.yaml''' Ingress file for WWE. In this example template, the namespace is set specifically to '''wwe'''. Adjust the values needed for your deployment. | ||
Line 131: | Line 111: | ||
secretName: wwe-ingress-cert | secretName: wwe-ingress-cert | ||
</source> | </source> | ||
− | ===Apply the yaml file to your namespace=== | + | ====Apply the yaml file to your namespace==== |
Use the following command to apply the yaml file to your namespace: | Use the following command to apply the yaml file to your namespace: | ||
<source lang="EMACS"> | <source lang="EMACS"> | ||
Line 138: | Line 118: | ||
|Status=No | |Status=No | ||
}}{{Section | }}{{Section | ||
− | |sectionHeading=Deploy in | + | |sectionHeading=Deploy in AKS |
− | |anchor= | + | |anchor=DeployAKS |
|alignment=Vertical | |alignment=Vertical | ||
− | |structuredtext==== | + | |structuredtext====Prerequisites=== |
− | Use the following | + | ====Secret configuration for pulling image==== |
+ | Use the following commands to create the Secret for accessing the jfrog registry and map the secret to the default account: | ||
+ | |||
<source lang="Emacs"> | <source lang="Emacs"> | ||
− | kubectl | + | kubectl create secret docker-registry mycred --docker-server=pureengageuse1-docker-multicloud.jfrog.io --docker-username=<camelot-username> --docker-password=<API key from jfrog> --docker-email=<emailid> |
</source> | </source> | ||
− | === | + | |
− | + | ====Install the azure-cli based in you OS environment==== | |
+ | Follow the instructions found in the following website to install the Azure CLI: | ||
+ | |||
+ | <nowiki>https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest</nowiki> | ||
+ | |||
+ | ===Login to AKS cluster=== | ||
<source lang="Emacs"> | <source lang="Emacs"> | ||
− | + | $ az login | |
+ | </source> | ||
+ | |||
+ | ===Connect to cluster=== | ||
+ | Use the following command to log in to the cluster from the deployment host:<source lang="Emacs"> | ||
+ | $ az aks get-credentials --resource-group <RESOURCE GROUP NAME> --name <AKS Cluster Name> | ||
</source> | </source> | ||
− | === | + | |
− | + | ===Environment preparation=== | |
+ | |||
+ | ====Create Namespace for WWE==== | ||
+ | Use the following command to create a new namespace for WWE: | ||
+ | |||
+ | <source lang="Emacs"> | ||
+ | $ kubectl create namespace wwe | ||
+ | </source> | ||
+ | |||
+ | ====Download the Helm charts==== | ||
+ | {{Link-AnywhereElse|product=PrivateEdition|version=Current|manual=PEGuide|topic=ManageServices|display text=Download}} the WWE Helm charts from following repository: https://pureengageuse1.jfrog.io/ui/login/ | ||
+ | |||
+ | ====Create the override file==== | ||
+ | Create the '''override_values.yaml''' file using the appropriate overrides based on the following sample: | ||
+ | |||
<source lang="Emacs"> | <source lang="Emacs"> | ||
− | helm template --debug -f | + | context: |
+ | envs: | ||
+ | optimizedConfig: false | ||
+ | gwsUrl: 'https://<gws-external -url>' | ||
+ | </source>'''Note''': Enable '''ingress''' and set it with an appropriate hostname. The value for '''gwsUrl''' must be set with the external gws url. | ||
+ | |||
+ | ===WWE Installation=== | ||
+ | |||
+ | ====Render the templates==== | ||
+ | To verify whether resources are getting created without issue, execute the following command to render templates without installing: | ||
+ | |||
+ | <source lang="Emacs"> | ||
+ | $ helm template --debug wwe ./wwe-nginx-9.0.5.tgz -f override_values.yaml -n wwe | ||
</source> | </source> | ||
− | |||
− | ===Deploy WWE=== | + | Review the displayed Kubernetes descriptors. The values are generated from Helm templates and are based on settings from the '''values.yaml''' and '''values-test.yaml''' files. Ensure that no errors are displayed. Later, you will apply this configuration to your Kubernetes cluster. |
+ | |||
+ | ====Deploy WWE==== | ||
Use the following command to deploy WWE: | Use the following command to deploy WWE: | ||
<source lang="Emacs"> | <source lang="Emacs"> | ||
− | helm install | + | $ helm install wwe ./wwe-nginx-9.0.5.tgz -f override_values.yaml -n wwe |
</source> | </source> | ||
+ | |||
This process takes several minutes. Wait until all objects are created and allocated, and the Kubernetes descriptors applied to the environment appear. | This process takes several minutes. Wait until all objects are created and allocated, and the Kubernetes descriptors applied to the environment appear. | ||
− | === | + | ====Verify the installation==== |
Use the following command to check the installed Helm release: | Use the following command to check the installed Helm release: | ||
<source lang="Emacs"> | <source lang="Emacs"> | ||
− | helm list –all-namespaces | + | $ helm list –all-namespaces |
− | |||
− | |||
− | |||
− | |||
</source> | </source> | ||
+ | |||
Use the following command to check the WWE objects created by Helm: | Use the following command to check the WWE objects created by Helm: | ||
+ | |||
<source lang="Emacs"> | <source lang="Emacs"> | ||
− | kubectl get all -n wwe | + | $ kubectl get all -n wwe |
</source> | </source> | ||
− | + | ||
− | + | Execute the following helm status command: | |
<source lang="Emacs"> | <source lang="Emacs"> | ||
− | + | $ kubectl status wwe -n wwe | |
− | + | ||
− | + | LAST DEPLOYED: Mon Jun 20 10:21:25 2022 | |
− | + | ||
− | + | NAMESPACE: wwe | |
− | + | ||
− | + | STATUS: deployed | |
− | |||
− | |||
− | |||
− | + | REVISION: 2 | |
− | + | TEST SUITE: None | |
− | |||
− | |||
</source> | </source> | ||
− | + | Verify that you can now access wwe at the following URL: | |
− | |||
− | Verify that you can access | ||
<nowiki>http://wwe.<host></nowiki> | <nowiki>http://wwe.<host></nowiki> |
Latest revision as of 08:01, March 28, 2023
Contents
Learn how to deploy Workspace Web Edition (WWE) into a private edition environment.
Assumptions
- The instructions on this page assume you are deploying the service in a service-specific namespace, named in accordance with the requirements on Creating namespaces. If you are using a single namespace for all private edition services, replace the namespace element in the commands on this page with the name of your single namespace or project.
- Similarly, the configuration and environment setup instructions assume you need to create namespace-specific (in other words, service-specific) secrets. If you are using a single namespace for all private edition services, you might not need to create separate secrets for each service, depending on your credentials management requirements. However, if you do create service-specific secrets in a single namespace, be sure to avoid naming conflicts.
Deploying in GKE
Prerequisites for GKE
Secret configuration for pulling image
Connect to the cluster using Cloud SDK
Use the following command to connect to the cluster from the deployment host:
gcloud container clusters get-credentials <gke cluster> --zone <gke zone> --project <gcp project>
Create the secret for accessing the jfrog registry
Use the following command to create the secret:
kubectl create secret docker-registry mycred
--docker-<container-registry>
--docker-username=<username>
--docker-password=<API key from jfrog>
--docker-email=<emailid> -n wwe
Environment Preparation for GKE
Download the Helm charts
- Download the WWE Helm charts from following repository: https://pureengageuse1.jfrog.io/ui/login/
- Create the override_values.yaml with appropriate overrides from the following sample file for a sample deployment:
context: envs: optimizedConfig: false gwsUrl: 'https://<gws-external -url>'
- Enable and set Ingress with the appropriate hostname.
- Set the value for gwsUrl applying the external gws url.
WWE installation on GKE
Log in to GKE cluster
Use the following command to connect to the GKE cluster using Cloud SDK from the deployment host:
gcloud container clusters get-credentials <gke cluster> --zone <gke zone> --project <gcp project>
Create Namespace for WWE
Use the following command to create a new namespace for WWE:
kubectl create namespace wwe
Render the templates
To verify whether resources are getting created without issue, execute the following command to render templates without installing:
helm template --debug wwe ./wwe-nginx-9.0.5.tgz -f override_values.yaml -n wwe
Review the displayed Kubernetes descriptors. The values are generated from Helm templates and are based on settings from the values.yaml and values-test.yaml files. Ensure that no errors are displayed. Later, you will apply this configuration to your Kubernetes cluster.
Deploy WWE
Use the following command to deploy WWE:
helm install wwe ./wwe-nginx-9.0.5.tgz -f override_values.yaml -n wwe
This process takes several minutes. Wait until all objects are created and allocated, and the Kubernetes descriptors applied to the environment appear.
Verify the installation
Use the following command to check the installed Helm release:
helm list –all-namespaces
Use the following command to check the WWE objects created by Helm:
kubectl get all -n wwe
Verify that you can now access WWE at the following URL:
http://wwe.<host>
Provisioning WWE Ingress on GKE
Create or download the wwe-ingress.yaml file
Use the following example template to create the wwe-ingress.yaml Ingress file for WWE. In this example template, the namespace is set specifically to wwe. Adjust the values needed for your deployment.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: wwe-ingress
namespace: wwe
annotations:
# add an annotation indicating the issuer to use.
cert-manager.io/cluster-issuer: "selfsigned-cluster-issuer"
# Custom annotations for NGINX Ingress Controller
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
rules:
- host: wwe.test.dev
http:
paths:
- path: /.*
backend:
serviceName: wwe-wwe-nginx
servicePort: 80
tls:
- hosts:
- wwe.test.dev
secretName: wwe-ingress-cert
Apply the yaml file to your namespace
Use the following command to apply the yaml file to your namespace:
kubectl apply -f wwe-ingress.yaml -n wwe
Deploy in AKS
Prerequisites
Secret configuration for pulling image
Use the following commands to create the Secret for accessing the jfrog registry and map the secret to the default account:
kubectl create secret docker-registry mycred --docker-server=pureengageuse1-docker-multicloud.jfrog.io --docker-username=<camelot-username> --docker-password=<API key from jfrog> --docker-email=<emailid>
Install the azure-cli based in you OS environment
Follow the instructions found in the following website to install the Azure CLI:
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest
Login to AKS cluster
$ az login
Connect to cluster
Use the following command to log in to the cluster from the deployment host:$ az aks get-credentials --resource-group <RESOURCE GROUP NAME> --name <AKS Cluster Name>
Environment preparation
Create Namespace for WWE
Use the following command to create a new namespace for WWE:
$ kubectl create namespace wwe
Download the Helm charts
Download the WWE Helm charts from following repository: https://pureengageuse1.jfrog.io/ui/login/
Create the override file
Create the override_values.yaml file using the appropriate overrides based on the following sample:
context:
envs:
optimizedConfig: false
gwsUrl: 'https://<gws-external -url>'
WWE Installation
Render the templates
To verify whether resources are getting created without issue, execute the following command to render templates without installing:
$ helm template --debug wwe ./wwe-nginx-9.0.5.tgz -f override_values.yaml -n wwe
Review the displayed Kubernetes descriptors. The values are generated from Helm templates and are based on settings from the values.yaml and values-test.yaml files. Ensure that no errors are displayed. Later, you will apply this configuration to your Kubernetes cluster.
Deploy WWE
Use the following command to deploy WWE:
$ helm install wwe ./wwe-nginx-9.0.5.tgz -f override_values.yaml -n wwe
This process takes several minutes. Wait until all objects are created and allocated, and the Kubernetes descriptors applied to the environment appear.
Verify the installation
Use the following command to check the installed Helm release:
$ helm list –all-namespaces
Use the following command to check the WWE objects created by Helm:
$ kubectl get all -n wwe
Execute the following helm status command:
$ kubectl status wwe -n wwe
LAST DEPLOYED: Mon Jun 20 10:21:25 2022
NAMESPACE: wwe
STATUS: deployed
REVISION: 2
TEST SUITE: None
Verify that you can now access wwe at the following URL:
http://wwe.<host>