Installing SINA packages from KubeOps Hub #
To install SINA packages from the KubeOps Hub on your machines.
-
First you need to search the package using command
sina search
( Refer sina search command for more info) on the KubeOps Hub. -
Now copy the installation address of desired package and use it the
sina install
command:[root@localhost ~]# sina install --hub <hubname> <installation address>
The --hub
parameter is to be used to install packages from the software Hub.
To be able to install a package from the software Hub, you have to be logged in as a user.
Install from Private Hub #
Example: The package livedemo
of user sina
with version 2.7.1
is to be installed from the private software Hub:
[root@localhost ~]# sina install sina/livedemo:2.7.1
Install from Public Hub #
Example: The package livedemo
of the user sina
with the version 2.7.1
is to be installed from the public software Hub:
[root@localhost ~]# sina install --hub public sina/livedemo:2.7.1
Install along with yaml files #
The -f
parameter must be used to use yaml files from the user.
[root@localhost ~]# sina install <package> -f <user.yaml>
Example: The package livedemo of user sina with version 2.7.1 is to be installed from the public software hub and user specific files are to be used for the installation:
[root@localhost ~]# sina install --hub public sina/livedemo:2.7.1 -f userfile1.yaml
Install in specific namespace #
-namespace flag The namespace parameter can be used to specify a kubernetes namespace in which to perform the installation.
[root@localhost ~]# sina install --hub <hubname> <package> --namespace <namespace>
Example: The package livedemo of user sina with version 2.7.1 is to be installed from the public software hub and a custom kubernetes namespace is used:
[root@localhost ~]# sina install --hub public sina/livedemo:2.7.1 --namespace MyNamespace
Note: If no –namespace parameter is specified, the namespace default will be used.
Install with specific deployment name #
–dname flag
The parameter dname can be used to save the package under a specific name.
[root@localhost ~]# sina install --hub <hubname> <package> --dname <deploymentname>
Example: The package livedemo of user sina with version 2.7.1 is to be installed from the public software hub and a deployment name is set:
[root@localhost ~]# sina install --hub public sina/livedemo:2.7.1 --dname MyDeployment
If no –dname parameter is specified, a random deployment name will be generated.
Note: The deployment name is stored in the file //var/kubeops/sina/deployment.yaml.
In these few steps, you can successfully install and use the SINA package.
You can always explore Full Documentation to go through all the functionality and features provided by SINA.
Install on a machine with no internet connection #
- Download the package using sina pull with a internet connection.
[root@localhost ~]# sina pull [package name from hub] -o [your preferred name] --hub public
-
Transfer the package to the machine with no internet connection but have KubeOps installed on it.
-
Install it with following command
[root@localhost ~]# sina install -p [package name]