title | type |
---|---|
Local Kyma installation |
Getting Started |
This Getting Started guide shows developers how to to quickly deploy Kyma locally on a Mac, Linux, or Windows. Kyma installs locally using a proprietary installer based on a Kubernetes operator. The document provides prerequisites, instructions on how to install Kyma locally and verify the deployment, as well as the troubleshooting tips.
To run Kyma locally, clone this Git repository to your local machine and download these tools:
- Minikube 0.28.2
- kubectl 1.10.0
- Helm 2.8.2
- jq
- Hyperkit driver - Mac only
- Virtualbox - Linux or Windows
- Hyper-V - Windows
Read the prerequisite reasoning document to learn why Kyma uses these tools.
Kyma comes with a local wildcard self-signed certificate. Trust it on the OS level for convenience. Alternatively, accept exceptions for each subdomain in your browser as you use Kyma.
Follow these steps to "always trust" the Kyma certificate on macOS:
- Open the Keychain Access application. Select System from the Keychains menu.
- Go to File, select Import items..., and import the Kyma certificate.
- Go to the Certificates view and find the
*.kyma.local
certificate you imported. - Right-click the certificate and select Get Info.
- Expand the Trust list and set When using this certificate to Always trust.
- Close the certificate information window and enter your system password to confirm the changes.
NOTE:
- The process is complete when you close the certificate information window and enter your password. You don't get the expected results if you try to use the certificate before completing this step.
- "Always trusting" the certificate does not work with Mozilla Firefox.
NOTE: Running the installation script deletes any previously existing cluster from your Minikube.
- Change the working directory to
installation
:
cd installation
- Depending on your operating system, run
run.sh
for Mac and Linux orrun.ps1
for Windows
cmd/run.sh
The run.sh
script does not show the progress of the Kyma installation, which allows you to perform other tasks in the terminal window. However, to see the status of the Kyma installation, run this script after you set up the cluster and the installer:
scripts/is-installed.sh
Read the Reinstall Kyma document to learn how to reinstall Kyma without deleting the cluster from Minikube. To learn how to test Kyma, see the Testing Kyma document.
The Custom Resource file contains controls the Kyma installer, which is a proprietary solution based on the Kubernetes operator. The file contains the basic information that defines Kyma installation. Find the custom resource template here.
To trigger the installation process, set the action label to install
in the metadata of the Custom Resource with the installer configuration.
To trigger the deinstallation process, set the action label to uninstall
in the metadata of the Custom Resource with the installer configuration.
Use the create-cr.sh
script to generate the Custom Resource file. The script accepts these arguments:
--output
- mandatory. The location of the Custom Resource output file--url
- the URL of the Kyma package to install--version
- the Kyma version--ipaddr
- the load balancer IP--domain
- the instance domain
For example:
$ ./installation/scripts/create-cr.sh --output kyma-cr.yaml --url {Kyma_TAR.GZ_URL} --version 0.0.1 --domain kyma.local
Follow the guidelines in the subsections to confirm that your Kubernetes API Server is up and running as expected.
Verify the cluster deployment with the kubectl command line interface (CLI).
Run this command to fetch all Pods in all Namespaces:
kubectl get pods --all-namespaces
The command retrieves all Pods from all Namespaces, the status of the Pods, and their instance numbers. Check if the STATUS column shows Running
for all Pods. If any of the Pods that you require do not start successfully, perform the installation again.
Access your local Kyma instance through this link.
-
Click Login with Email and sign in with the
admin@kyma.cx
email address and the generic password from the Dex ConfigMap file. -
Click the Environments section and select an Environment from the drop-down menu to explore Kyma further.
Additionally, confirm that you can access your Kubernetes Dashboard. Run the following command to check the IP address on which Minikube is running:
minikube ip
The address of your Kubernetes Dashboard looks similar to this:
http://{ip-address}:30000
See the example of the website address:
http://192.168.64.44:30000
If the installer does not respond as expected, check the installation status using the is-installed.sh
script with the --verbose
flag added. Run:
scripts/is-installed.sh --verbose