https://github.com/hardillb/k8s-operator
https://github.com/hardillb/k8s-operator
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/hardillb/k8s-operator
- Owner: hardillb
- License: apache-2.0
- Created: 2024-12-13T22:20:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-21T18:00:34.000Z (over 1 year ago)
- Last Synced: 2025-04-06T01:36:07.458Z (over 1 year ago)
- Language: JavaScript
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Demo Node-RED K8s Operator
## Build/Run locally
Run the following:
```bash
git clone https://github.com/hardillb/k8s-operator.git
cd k8s-operator
./create-ca.sh
docker build . -t containers.hardill.me.uk/testing/node-red-operator:latest
kubectl apply -f crds/node-red.yml
kubectl apply -f deployment/deployment.yml
```
## Create Instance
Create a Node-RED instance called test, with the following YAML
```yaml
apiVersion: k8s.hardill.me.uk/v1
kind: Node-RED
metadata:
name: test
spec:
flow: |
[
]
service:
enabled: true
ingress:
enabled: true
hostname: 'test.example.com'
```
And deploy with
```
kubectl apply -y test.yml
```