Skip to content
This repository was archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Cleanup and instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tonikautto committed May 15, 2019
1 parent d3933e0 commit 204ee5f
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 31 deletions.
17 changes: 17 additions & 0 deletions 1-Deploy-Minikube.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Start minikube with 2 CPU and 8GB RAM
minikube start --memory 8000 --cpus=2

# Force Kubectl to poin to minikube
kubectl config set-cluster minikube

# Run the following command to add Qlik’s helm chart repository to Helm. This is where Qlik Sense is pulled from:
helm repo add qlik https://qlik.bintray.com/stable

# use helm to deploy into Kubernetes, the helm Tiller pod is added to the Kubernetes cluster first.
helm init --wait

# Install custom resource definitions used by dynamic engines
helm install --name qliksense-init qlik/qliksense-init

# Install the Qlik Sense package
helm install -n qliksense qlik/qliksense -f values.yaml
31 changes: 0 additions & 31 deletions 1-setup-minikube.ps1

This file was deleted.

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Toni Kautto

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
64 changes: 64 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Deploy Qlik Sense Enterprise for Kubernetes (QSEoK) on local Minikube

This project simplifies the deployment of Qlik Sense Enterprise for Kubernetes (QSEoK) on local Minikube. This can be used for testing, but should not be applied in production environment.

Scripts and details are based on default deploymetn of Qlik Sense April 2019 as described in below references.

## Qlik Sense Help Reference

* [Qlik Sense Help](https://help.qlik.com/en-US/sense/Content/Sense_Helpsites/Home.htm)
* [Qlik Sense Enterprise on Kubernetes](https://help.qlik.com/en-US/sense/April2019/Subsystems/PlanningQlikSenseDeployments/Content/Sense_Deployment/Deploying-Qlik-Sense-multi-cloud-Efe.htm)
* [Prepare install](https://help.qlik.com/en-US/sense/April2019/Subsystems/PlanningQlikSenseDeployments/Content/Sense_Deployment/Preparing-Qlik-Sense-multi-cloud-Efe.htm)
* [Using Minikube](https://help.qlik.com/en-US/sense/April2019/Subsystems/PlanningQlikSenseDeployments/Content/Sense_Deployment/using-minikube-qseok.htm)
* [Installing Qlik Sense Enterprise on Kubernetes](https://help.qlik.com/en-US/sense/April2019/Subsystems/PlanningQlikSenseDeployments/Content/Sense_Deployment/Installing-Qlik-Sense-multi-cloud-Efe.htm)

## Pre-requisites

Tools only need to be installed once, and only if not already installed. Below references use [Chocolatey package manager for Windows](https://chocolatey.org/) as an easy way to silently install the required tools.

1. Open PowerShell terminal as Administrator
1. Install Chocolatey package manager
```
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
```
1. Install Virtualbox
```
choco install virtualbox --yes
```
1. Install Minikube
```
choco install minikube --yes
```
1. Install Kubectl
```
choco install kubernetes-cli --yes
```
1. Install Helm
```
choco install kubernetes-helm --yes
```
1. Restart computer to ensure compelted install of all tools
## Deploy Qlik Sense on Kubernetes on Minikube
1. Open Powershell terminal
1. Run `1-Deploy-Minikube.ps1` to deploy QSEoK on Minikube
- Runs Minikube VM in Virtual box
- Installs and configures QSE on Kubernetes
1. Run `kubectl get pods` until all pods are running. <br/>Note, this takes several minutes.
1. Get Minikube IP address `minikube ip`
1. Update Windows hostfile in *C:\Windows\System32\drivers\etc* to include row with IP from previous refering to *elastic.example* <br /> `<IP ADDRESS> elastic.example`
1. Browse to console https://elastic.example:32443/console/
1. Apply license
1. Browse to Hub https://elastic.example:32443
<br/>User: [email protected]
<br/>Pwd: Password1!
## Remove deployment
1. Terminated and remove minikube instance <br /> `minikube delete`
## License
This project is provided "AS IS", without any warranty, under the MIT License - see the [LICENSE](LICENSE) file for details
File renamed without changes.

0 comments on commit 204ee5f

Please sign in to comment.