{"id":13562102,"url":"https://github.com/B23admin/nifi-stateless-operator","last_synced_at":"2025-04-03T18:32:46.112Z","repository":{"id":92895512,"uuid":"169803356","full_name":"B23admin/nifi-stateless-operator","owner":"B23admin","description":"An Operator for scheduling and executing NiFi Flows as Jobs on Kubernetes","archived":false,"fork":false,"pushed_at":"2020-06-11T13:45:43.000Z","size":70756,"stargazers_count":53,"open_issues_count":2,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-01T13:25:17.437Z","etag":null,"topics":["containers","kubernetes","kubernetes-operator","nifi"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/B23admin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-02-08T21:48:48.000Z","updated_at":"2024-01-13T23:59:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"afae88ee-b05d-4bdd-b86a-fcdb8315e999","html_url":"https://github.com/B23admin/nifi-stateless-operator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B23admin%2Fnifi-stateless-operator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B23admin%2Fnifi-stateless-operator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B23admin%2Fnifi-stateless-operator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/B23admin%2Fnifi-stateless-operator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/B23admin","download_url":"https://codeload.github.com/B23admin/nifi-stateless-operator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223010457,"owners_count":17072989,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["containers","kubernetes","kubernetes-operator","nifi"],"created_at":"2024-08-01T13:01:04.553Z","updated_at":"2024-11-04T14:30:49.053Z","avatar_url":"https://github.com/B23admin.png","language":"Go","readme":"# B23 Kubernetes Operator for NiFi-Stateless #\n\nAn Operator for scheduling and executing NiFi Flows on Kubernetes. The operator is made possible by [NiFi-Stateless](https://github.com/apache/nifi/pull/3241)\n\n\u003e This is a proof of concept for the proposed Kubernetes Runtime for [nifi-stateless](https://github.com/apache/nifi/tree/rel/nifi-1.10.0/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-stateless)\n\n\n### Install the Operator on a cluster ###\n\nIf you just want to run the operator on your cluster:\n\n```shell\nkubectl apply -f https://raw.githubusercontent.com/b23llc/nifi-stateless-operator/master/config/deploy/nifi-stateless-operator.yaml\n```\n\nIf you also want to run a Nifi/Registry Pod to use as a canvas as a convenience for developing and testing flows, run:\n\n```shell\nkubectl apply -f https://raw.githubusercontent.com/b23llc/nifi-stateless-operator/master/config/deploy/nifi.yaml\n```\n\n\u003e To access the nifi/registry services, run: `kubectl -n nifi-stateless-operator-system port-forward statefulset/nifi 8081:8081 18080:18080`\nNote that this nifi/registry pod is a convenience and should not be used for production workloads.\n\nTest the operator by creating a `NiFiFn` Resource. Make sure to update the `flow` and `bucket` fields\nwith the uuid of a flow from your registry.\n\n```yaml\n# config/samples/nififn_v1alpha1_nififn.yaml\napiVersion: nififn.nifi-stateless.b23.io/v1alpha1\nkind: NiFiFn\nmetadata:\n  name: nififn-sample\nspec:\n  # image: \"dbkegley/nifi-stateless:1.10.0-SNAPSHOT\"\n  runFrom: registry\n  registryUrl: \"http://registry-service:18080\"\n  bucketId: \"8444dc91-00f3-415c-a965-256ffa28c3f5\"\n  flowId: \"d6045598-3d11-438d-b921-52d466b66314\"\n  flowVersion: -1\n  flowFiles:\n  - absolute.path: /path/to/input/data/\n    filename: testfile.txt\n  - absolute.path: /path/to/input/data/\n    filename: hello.txt\n    nifi_content: \"hello world\"\n```\n\nIt is also possible to run from a `flow.xml.gz` file:\n\n```dockerfile\nFROM dbkegley/nifi-stateless:1.10.0-SNAPSHOT\nADD flow.xml.gz /opt/nifi/nifi-current/conf/flow.xml.gz\n```\n\nand update the NiFiFn spec to set: `runFrom: xml`\n\n\n### Build ###\n\nRequires:\n\n- [kubebuilder v2](https://book.kubebuilder.io/)\n- [kustomize v3](https://github.com/kubernetes-sigs/kustomize)\n\n\n#### Develop ####\n\nInstall CRDs: `make install`\n\nRun Operator: `make run`\n\n\n#### Release ####\n\nRun `make gen-release` target to test/build/tag the docker image, generate the CRDs, generate operator install and rbac manifests and push the image to docker hub\n\n\u003e Tested locally with [docker-for-mac](https://docs.docker.com/v17.12/docker-for-mac/install/) Version 2.0.0.2 (30215)\nand on Google Cloud Platform with [Google Kubernetes Engine](https://cloud.google.com/kubernetes-engine/)\n\n\n### User notes ###\n\n- the NiFiFn project was renamed to nifi-stateless but I'm keeping the NiFiFn as the CRD resource type here because it's easier to type\n- ssl configurations are accessible in plain text via the kubernetes api using `kubectl describe nififn`\n- sensitive parameters are not supported\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FB23admin%2Fnifi-stateless-operator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FB23admin%2Fnifi-stateless-operator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FB23admin%2Fnifi-stateless-operator/lists"}