Install with CLI
vz CLIThe following instructions show you how to install Verrazzano in a single Kubernetes cluster using the CLI.
Prerequisites
- Find the Verrazzano prerequisite requirements here.
- Review the list of the software versions supported and installed by Verrazzano.
NOTE
To avoid conflicts with Verrazzano system components, we recommend installing Verrazzano into an empty cluster.Prepare for the installation
Before installing Verrazzano, see instructions on preparing Kubernetes platforms and installing the Verrazzano CLI (optional). Make sure that you have a valid kubeconfig file pointing to the Kubernetes cluster that you want to use for installing Verrazzano.
NOTE: Verrazzano can create network policies that can be used to limit the ports and protocols that pods use for network communication. Network policies provide additional security but they are enforced only if you install a Kubernetes Container Network Interface (CNI) plug-in that enforces them, such as Calico. For instructions on how to install a CNI plug-in, see the documentation for your Kubernetes cluster.
Perform the installation
Verrazzano provides a platform operator to manage the life cycle of Verrazzano installations. Using the Verrazzano custom resource, you can install, uninstall, and upgrade Verrazzano installations. When applying the Verrazzano custom resource, the Verrazzano CLI deploys and installs the Verrazzano platform operator; you need only to install Verrazzano as described in the following section.
Verrazzano supports the following installation profiles: development (dev), production (prod), and
managed cluster (managed-cluster). For more information, see
Installation Profiles.
This document shows how to create a basic Verrazzano installation using:
- The development (
dev) installation profile - Wildcard-DNS, where DNS is provided by nip.io (the default)
NOTE: Because the dev profile installs self-signed certificates, when installing Verrazzano on macOS, you might see: Your connection is not private. For a workaround, see this FAQ.
For an overview of how to configure Verrazzano, see Modify Verrazzano Installations. For a complete description of Verrazzano configuration options, see the Verrazzano Custom Resource Definition.
To use other DNS options, see Customizing DNS for more details.
Install Verrazzano
To create a Verrazzano installation as described in the previous section, run the following commands.
-
Install Verrazzano with its
devprofile.$ vz install -f - <<EOF apiVersion: install.verrazzano.io/v1beta1 kind: Verrazzano metadata: name: example-verrazzano spec: profile: dev defaultVolumeSource: persistentVolumeClaim: claimName: verrazzano-storage volumeClaimSpecTemplates: - metadata: name: verrazzano-storage spec: resources: requests: storage: 2Gi EOFThis command installs the Verrazzano platform operator and applies the Verrazzano custom resource.
-
Wait for the installation to complete. Installation logs will be streamed to the command window until the installation has completed or until the default timeout (30m) has been reached.
To use a different profile with the previous example, set the VZ_PROFILE environment variable to the name of the profile you want to install.
Verify the installation
To verify the Verrazzano installation, you can use the vz status command to determine the status of your installation. After a successful installation, Verrazzano should be in the Ready state.
$ vz status
# Sample output for a dev profile install
Verrazzano Status
Name: example-verrazzano
Namespace: default
Profile: prod
Version: v1.5.1
State: Ready
Available Components: 23/23
Access Endpoints:
consoleUrl: https://verrazzano.default.10.0.0.1.nip.io
grafanaUrl: https://grafana.vmi.system.default.10.0.0.1.nip.io
keyCloakUrl: https://keycloak.default.10.0.0.1.nip.io
kialiUrl: https://kiali.vmi.system.default.10.0.0.1.nip.io
openSearchDashboardsUrl: https://osd.vmi.system.default.10.0.0.1.nip.io
openSearchUrl: https://opensearch.vmi.system.default.10.0.0.1.nip.io
prometheusUrl: https://prometheus.vmi.system.default.10.0.0.1.nip.io
rancherUrl: https://rancher.default.10.0.0.1.nip.io
For installation troubleshooting help, see the Analysis Advice.
After the installation has completed, you can use the Verrazzano consoles. For information on how to get the consoles URLs and credentials, see Access Verrazzano.
Next steps
(Optional) Run the example applications located here.