nifikop

by RADAR-Base

Helm chartv1.14.1App 1.14.1-releaseVerified publisher

A Helm chart for NiFiKop - the Konpyūtāika NiFi Kubernetes operator

About this chart

NiFiKop - Nifi Kubernetes operator Helm chart

This Helm chart install NiFiKop the Konpyūtāika's Nifi Kubernetes operator to create/configure/manage NiFi clusters in a Kubernetes Namespace.

It will use Custom Ressources Definition CRDs:

  • nificlusters.nifi.konpyutaika.com,
  • nifiusers.nifi.konpyutaika.com,
  • nifiusergroups.nifi.konpyutaika.com,
  • nifiregistryclients.nifi.konpyutaika.com,
  • nifiparametercontexts.nifi.konpyutaika.com,
  • nifidataflows.nifi.konpyutaika.com,

which implements kubernetes custom ressource definition.

Introduction

Configuration

The following tables lists the configurable parameters of the NiFi Operator Helm chart and their default values.

ParameterDescriptionDefault
image.repositoryImagekonpyutaika/nifikop
image.tagImage tagv1.14.1-release
image.pullPolicyImage pull policyAlways
image.imagePullSecrets.enabledEnable the use of secret for docker imagefalse
image.imagePullSecrets.nameName of the secret to connect to docker registry-
certManager.enabledEnable cert-manager integrationtrue
rbacEnableIf true, create & use RBAC resourcestrue
labelsLabels to add to all deployed resources{}
annotationsAnnotations to add to all deployed resources{}
resourcesPod resource requests & limits{}
metrics.enableddeploy service for metricsfalse
metrics.portSet port for operator metrics8081
logLevelLog level to outputInfo
logEncodingLog encoding to use. Either json or consolejson
certManager.clusterScopedIf true setup cluster scoped resourcesfalse
namespacesList of namespaces where Operator watches for custom resources. Make sure the operator ServiceAccount is granted get permissions on this Node resource when using limited RBACs."" i.e. all namespaces
nodeSelectorNode selector configuration for operator pod{}
affinityNode affinity configuration for operator pod{}
tolerationsToleration configuration for operator pod{}
serviceAccount.createWhether the SA creation is delegated to the chart or nottrue
serviceAccount.nameName of the SA used for NiFiKop deploymentrelease name
webhook.enabledEnable webhook migrationtrue
runAsUserSpecify RunAsUser uid for NiFiKop operator pod1000
additionalEnvsList of additional environment variables to set in the NiFiKop operator pod.[]

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart. For example,

$ helm install nifikop \
    oci://ghcr.io/konpyutaika/helm-charts/nifikop \
    -f values.yaml

Installing the Chart

In the case where you don't want to deploy the crds using helm (--skip-crds) or you are using a version of kubernetes that is under 1.16, you need to deploy manually the crds beforehand:

kubectl apply -f https://raw.githubusercontent.com/konpyutaika/nifikop/master/deploy/crds/v1beta1/nifi.konpyutaika.com_nificlusters_crd.yaml
kubectl apply -f https://raw.githubusercontent.com/konpyutaika/nifikop/master/deploy/crds/v1beta1/nifi.konpyutaika.com_nifiusers_crd.yaml
kubectl apply -f https://raw.githubusercontent.com/konpyutaikanifikop/master/deploy/crds/v1beta1/nifi.konpyutaika.com_nifiusergroups_crd.yaml
kubectl apply -f https://raw.githubusercontent.com/konpyutaika/nifikop/master/deploy/crds/v1beta1/nifi.konpyutaika.com_nifidataflows_crd.yaml
kubectl apply -f https://raw.githubusercontent.com/konpyutaika/nifikop/master/deploy/crds/v1beta1/nifi.konpyutaika.com_nifiparametercontexts_crd.yaml
kubectl apply -f https://raw.githubusercontent.com/konpyutaika/nifikop/master/deploy/crds/v1beta1/nifi.konpyutaika.com_nifiregistryclients_crd.yaml

You can make a dry run of the chart before deploying:

helm install nifikop konpyutaika-incubator/nifikop \
    --dry-run \
    --debug.enabled \
    --set logLevel="Debug" \
    --set namespaces={"nifikop"}

To install the chart with the release name nifikop:

$ helm install nifikop konpyutaika-incubator/nifikop --set namespaces={"nifikop"}

We can surcharge default parameters using --set flag:

$ helm install nifikop konpyutaika-incubator/nifikop --replace --set image.tag=asyncronous

the --replace flag allow you to reuses a charts release name

Listing deployed charts

helm list

Get Status for the helm deployment

helm status nifikop

Uninstaling the Charts

If you want to delete the operator from your Kubernetes cluster, the operator deployment should be deleted.

$ helm del nifikop

The command removes all the Kubernetes components associated with the chart and deletes the helm release.

The CRD created by the chart are not removed by default and should be manually cleaned up (if required)

Manually delete the CRD:

kubectl delete crd nificlusters.nifi.konpyutaika.com
kubectl delete crd nifiusers.nifi.konpyutaika.com
kubectl delete crd nifiusergroups.nifi.konpyutaika.com
kubectl delete crd nifiregistryclients.nifi.konpyutaika.com
kubectl delete crd nifiparametercontexts.nifi.konpyutaika.com
kubectl delete crd nifidataflows.nifi.konpyutaika.com

!!!!!!!!WARNING!!!!!!!!

If you delete the CRD then !!!!!!WAAAARRRRNNIIIIINNG!!!!!!

It will delete ALL Clusters that has been created using this CRD!!!

Please never delete a CRD without very very good care

Helm always keeps records of what releases happened. Need to see the deleted releases? helm ls --deleted shows those, and helm ls --all shows all of the releases (deleted and currently deployed, as well as releases that failed):

Because Helm keeps records of deleted releases, a release name cannot be re-used. (If you really need to re-use a release name, you can use the --replace flag, but it will simply re-use the existing release and replace its resources.)

Note that because releases are preserved in this way, you can rollback a deleted resource, and have it re-activate.

To purge a release

helm del nifikop

Troubleshooting

Install of the CRD

By default, the chart will install the CRDs, but this installation is global for the whole cluster, and you may want to not modify the already deployed CRDs.

In this case there is a parameter to say to not install the CRDs:

$ helm install --name nifikop ./helm/nifikop --set namespaces={"nifikop"} --skip-crds

Deploy nifikop with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nifikop on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartnifikop is pinned at v1.14.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply