Go back to the Zing Quickstart Guide.
Note: Our software distributions are signed by an OpenPGP key when appropriate. To verify your download, see Product Signing Keys (OpenPGP) for details.
These instructions introduce you to the quick and easy process of packaging Zing 13 in a Docker container image and running the container image on a Kubernetes cluster.
In order to install and run Zing 13 in Kubernetes, make sure a Kubernetes cluster is created and you have authentication credentials to interact with the cluster.
FROM ubuntu:18.04
RUN apt-get update &&\
apt-get install -y software-properties-common && \
apt-key adv --keyserver hkps://keyserver.ubuntu.com --recv-keys 0x219BD9C9&& \
apt-add-repository "deb https://repos.azul.com/zing/ubuntu $(lsb_release -sc) main"
RUN apt-get install zing-jdk13.0.0 -y
docker build -t zing-docker .
docker run -it --rm --env ZING_LICENSE="`cat ./ZING_LICENSE`" zing-docker /opt/zing/zing-jdk13/bin/java -version
The output should look similar to the snippet below:
java version "13.0.5.1" 2020-12-03
Java Runtime Environment Zing20.12.0.0+1-CA (build 13.0.5.1+1-MTS)
Zing 64-Bit Tiered VM Zing20.12.0.0+1-CA (build 13.0.5.1-zing_20.12.0.0-b1-product-linux-X86_64, mixed mode)
wget -O- https://trial-licenses.azul.com/redeem/Zing_Trial_Token > ./ZING_LICENSE
Add your Zing Trial License to the ConfigMap configuration file:
kubectl create configmap zing-config --from-file=./ZING_LICENSE
Create a pod with Zing in a Docker container using the ConfigMap:
cat <<EOF > zing.yaml apiVersion: v1 kind: Pod metadata: name: zing-pod spec: containers: - name: zing-pod image: zing-docker envFrom: - configMapRef: name: zing-config EOF kubectl apply -f zing.yaml
You are now ready to start running your Java applications using the containerized Zing Virtual Machine deployed on a Kubernetes cluster.
In case of issues, visit the Zing Community Forum.
Post Installation Tasks for Production Systems