Useful TDV-Specific Commands
|
To list the TDV Pods |
$ kubectl get pods -n tdv |
|
To describe TDV Pod. |
$ kubectl describe pod tdv-0 -n tdv |
|
To list TDV volumes |
$ kubectl get pvc -n tdv |
|
To display the log of the init container in the specified pod. |
$ kubectl logs tdv-0 init -n tdv |
|
To invoke bash command prompt for the specified pod. |
$ kubectl exec -it tdv-0 -c tdv -n tdv -- /bin/bash |
|
To install Docker Registry Secret |
$ kubectl create secret tdv-registry-secret -n tdv --docker-server=<DOCKER_SERVER> --docker-username=<DOCKER_USERNAME> --docker-password=<DOCKER_PASSWORD> --docker-email=<DOCKER_EMAIL> Note: Name of the secret must be "tdv-registry-secret" otherwise TDV deployment in Kubernetes will not work with the TDV Helm chart. |
|
To Manually Deploy the Local Path Storage class |
$ kubectl apply -f local-path-storage/local-path-storage.yaml $ kubectl get deployment -n local-path-storage --no-headers |
|
To Manually Deploy the Azure csi-standard-cs Storage class |
$ kubectl apply -f csi-sc-standard/sc-azure-disk.yaml $ kubectl get storageclass Note: This storage class is only used for tdv.deploymentEnvironment="aks". |
|
To install HAProxy Certificate Secret |
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -out gateway.crt -keyout gateway.key -subj "/CN=tdv.haproxy/O=tdv-haproxy-gateway-certs-secret" cat gateway.crt gateway.key | tee gateway.pem kubectl create secret generic $tdv-haproxy-gateway-certs-secret --from-file=gateway.pem=./gateway.pem -n tdv Note: Name of the secret must be "tdv-haproxy-gateway-certs-secret" otherwise TDV deployment in Kubernetes will not work with the TDV Helm chart. |
TDV Deployment Examples
Private Cloud (On-Premises) Deployment
|
Private cloud |
tdv.deploymentEnvironment="private" |
|
TDV Cluster example using custom TDV password. Note: One must set a custom TDV password during the build phase of the tdvk8s image. tdv.cluster.arbiterPassword must match the password set during the build phase. |
$./run_tdv_helmchart.sh --set tdv.cluster.arbiterPassword=random1Password,tdv.cluster.externalIPs="{100.20.30.20}",tdv.cluster.loadBalancerSourceRanges="{100.20.30.0/12}",tdv.image="<HOSTNAME>/tibco/tdvk8s:8.5"
|
| TDV Cluster example with 3 replicas, custom memory, cpu, and storage settings. | $./run_tdv_helmchart.sh --set tdv.replicas=3,tdv.cluster.externalIPs="{100.20.30.20}",tdv.cluster.loadBalancerSourceRanges="{100.20.30.0/12}",tdv.image="<HOSTNAME>/tibco/tdvk8s:8.5",tdv.resources.dynamic.requests.cpu="2000m",tdv.resources.
|
| TDV Single example with default replicas=1 and default memory and cpu. |
./run_tdv_helmchart.sh --set tdv.deploymentMode=single,tdv.image="<REPO_URL>/tdvk8s:8.5 |
| TDV Single example with default replicas=1 and default memory and cpu - Using Helm command. |
helm install --create-namespace -n tdv ./tdv --set tdv.deploymentMode=single,tdv.image="<REPO_URL>/tdvk8s:8.5"
|
| TDV Cluster example with default values and loadBalancer source range settings. | ./run_tdv_helmchart.sh --set tdv.externalIPs="{100.20.30.20}",tdv.load BalancerSourceRanges="{100.20.30.0/12}",tdv.image="<REPO_URL>/tdvk8s:8.5"
|
| TDV Cluster example with default values - Using Helm command. | helm install --create-namespace -n tdv ./tdv --set tdv.image="<REPO_URL>/tdvk8s:8.5" |
| TDV HAProxy example (tdv-0 default pod monitoring) | $./run_tdv_haproxy.sh -d --set tdv.externalIPs="{100.20.30.20}",tdv.loadBalancerSourceRanges="{100.20.30.0/12}"
|
| TDV HAProxy example (tdv-1 pod monitoring) | $./run_tdv_haproxy.sh -d --set tdv.podName="tdv-1",tdv.externalIPs="{100.20.30.20}",tdv.loadBalancerSourceRanges="{100.20.30.0/12}"
|
Public Cloud Deployment
Public cloud (Azure) |
tdv.deploymentEnvironment="aks" |
|
TDV Cluster example with 3 replicas, custom memory, cpu, and storage settings. |
$ ./run_tdv_helmchart.sh --set tdv.replicas=3,tdv.deploymentEnvironment="aks",tdv.resources.dynamic.storageClass="csi-sc-standard",tdv.image="<NAME>.azurecr.io/tibco/tdvk8s:8.5",tdv.resources.dynamic.requests.cpu="2000m", |
|
TDV Single example with default replicas=1 and default memory and cpu. |
./run_tdv_helmchart.sh --set tdv.deploymentMode=single,tdv.deploymentEnvironment="aks", |
|
TDV Single example with default replicas=1 and default memory and cpu - Using Helm command. |
helm install --create-namespace -n tdv tdv ./tdv --set tdv.deploymentMode=single,tdv.deploymentEnvironment="aks",tdv.resources.dynamic.storageClass= |
|
TDV Cluster example with default replicas=1 and default memory and cpu. |
./run_tdv_helmchart.sh --set tdv.deploymentEnvironment="aks",tdv.resources.dynamic.storageClass="csi-sc-standard",tdv.image="<REPO_URL>/tdvk8s:8.5" |
|
TDV Cluster example with default replicas=1 and default memory and cpu - Using Helm command. |
helm install --create-namespace -n tdv tdv ./tdv --set tdv.deploymentEnvironment="aks", |
|
TDV HAProxy example (tdv-0 default pod monitoring) |
$./run_tdv_haproxy.sh --set tdv.deploymentEnvironment="aks" |
|
TDV HAProxy example (tdv-1 pod monitoring) |
$./run_tdv_haproxy.sh --set tdv.podName="tdv-1",tdv.deploymentEnvironment="aks" |
Public cloud (Amazon Web Service) |
tdv.deploymentEnvironment="eks" |
|
TDV Cluster example with 3 replicas, custom memory, cpu, and storage settings. |
$ ./run_tdv_helmchart.sh --set tdv.replicas=3,tdv.deploymentEnvironment="eks",tdv.resources.dynamic.storageClass="csi-sc-standard",tdv.image="<NAME>.azure cr.io/tibco/tdvk8s:8.5",tdv.resources.dynamic.requests.cpu="2000m",tdv.resources.dynamic.requests.memory="16G", |
|
TDV Single example with default replicas=1 and default memory and cpu. |
./run_tdv_helmchart.sh --set tdv.deploymentMode=single,tdv.deploymentEnvironment="eks",tdv.resources.dynamic.storageClass="csi-sc-standard",tdv.image="<REPO_URL>/tdvk8s:8.5" |
|
TDV Single example with default replicas=1 and default memory and cpu - Using Helm command. |
helm install --create-namespace -n tdv tdv ./tdv --set tdv.deploymentMode=single,tdv.deploymentEnvironment="eks",tdv.resources.dynamic.storageClass="csi-sc-standard",tdv.image="<REPO_URL>/tdvk8s:8.5" |
|
TDV Cluster example with default replicas=1 and default memory and cpu. |
./run_tdv_helmchart.sh --set tdv.deploymentEnvironment="eks",tdv.resources.dynamic.storageClass="csi-sc-standard",tdv.image="<REPO_URL>/tdvk8s:8.5" |
|
TDV Cluster example with default replicas=1 and default memory and cpu - Using Helm command. |
helm install --create-namespace -n tdv tdv ./tdv --set tdv.deploymentEnvironment="eks",tdv.resources.dynamic.storageClass="csi-sc-standard",tdv.image="<REPO_URL>/tdvk8s:8.5" |
|
TDV HAProxy example (tdv-0 default pod monitoring) |
$./run_tdv_haproxy.sh --set tdv.deploymentEnvironment="eks" |
|
TDV HAProxy example (tdv-1 pod monitoring) |
$./run_tdv_haproxy.sh --set tdv.podName="tdv-1",tdv.deploymentEnvironment="eks" |