4.0 KiB
qliksense command reference
qliksense apply
qliksense apply command takes input a cr file or input from pipe
qliksense apply -f cr-file.yamlcat cr-file.yaml | qliksense apply -f -
the content of cr-file.yaml should be something similar
apiVersion: qlik.com/v1
kind: Qliksense
metadata:
name: qlik-test
labels:
version: v0.0.2
spec:
configs:
qliksense:
- name: acceptEULA
value: "yes"
secrets:
qliksense:
- name: mongoDbUri
value: mongodb://qlik-test-mongodb:27017/qliksense?ssl=false
profile: docker-desktop
rotateKeys: "yes"
This will do everything qliksense load does and install the qliksense into the cluster.
qliksense load
qliksense load command takes input a cr file or input from pipe.
qliksense load -f cr-file.yamlcat cr-file.yaml | qliksense load -f -
This will load the CR into ${QLIKSENSE_HOME} folder, create context structure and set the current context to that CR.
This will also encrypt the secrets from CR while writing the CR into the disk.
qliksense about
About action will display inside information regarding qliksense-k8 release.
it will support following flags
qliksense about 1.0.0display default profile for tag1.0.0.qliksense about 1.0.0 --profile=docker-desktopqliksense about- assuming current directory has
manifests/docker-desktop - or get version information from pull of
qliksense-k8smaster
- assuming current directory has
using other supported commands user might have built the CR into the location ~/.qliksense/myqliksense.yaml
apiVersion: qlik.com/v1
kind: QlikSense
metadata:
name: myqliksense
spec:
profile: docker-desktop
manifestsRoot: /Usr/ddd/my-k8-repo/manifests
namespace: myqliksense
storageClassName: efs
configs:
qliksense:
- name: acceptEULA
value: "yes"
secrets:
qliksense:
- name: mongoDbUri
value: "mongo://mongo:3307"
- name: messagingPassword
valueFromKey: messagingPassword
In that case the command would be
qliksense about- display from
/Usr/ddd/my-k8-repo/manifests/docker-desktoplocation - pull from
masterif directory invalid/empty
- display from
qliksense config
Config action will perform operations on configurations and contexts regarding the qliksense-k8 release.
it will support following commands:
qliksense config apply- generate the patchs and apply manifests to k8sqliksense config list-contexts- retrieves the contexts and lists themqliksense config set- configure a key value pair into the current contextqliksense config set-configs- set configurations into the qliksense context as key-value pairsqliksense config set-context- sets the context in which the Kubernetes cluster and resources live inqliksense config set-secrets <service_name>.<attribute>="<value>" --secret=false- set secrets configurations into the qliksense context as key-value pairs and show encrypted value as part of CRqliksense config set-secrets <service_name>.<attribute>="<value>" --secret=true- set secrets configurations into the qliksense context as key-value pairs and show a key reference to the created Kubernetes secret resource as part of the CRqliksense config view- view the qliksense operator CRqliksense config delete-context- deletes a specific context locally (not in-cluster). Deletes context in spec ofconfig.yamland locally deletes entire folder of specified context (does not delete in-cluster secrets)
the global file that abstracts all the contexts is config.yaml, located at: ~/.qliksense/config.yaml:
apiVersion: config.qlik.com/v1
kind: QliksenseConfig
metadata:
name: QliksenseConfigMetadata
spec:
contexts:
- name: qlik-default
crFile: /Users/fff/.qliksense/contexts/qlik-default/qlik-default.yaml
- name: myqliksense
crFile: /Users/fff/.qliksense/contexts/myqliksense/myqliksense.yaml
- name: hello
crFile: /Users/fff/.qliksense/contexts/hello/hello.yaml
currentContext: hello