Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/piyush1146115/dummy-operator
A dummy Kubernetes operator
https://github.com/piyush1146115/dummy-operator
Last synced: about 1 month ago
JSON representation
A dummy Kubernetes operator
- Host: GitHub
- URL: https://github.com/piyush1146115/dummy-operator
- Owner: piyush1146115
- License: apache-2.0
- Created: 2023-01-08T09:19:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-16T04:31:30.000Z (about 2 years ago)
- Last Synced: 2024-11-12T02:08:22.459Z (3 months ago)
- Language: Go
- Size: 17.8 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dummy-operator
A dummy Kubernetes operator## Install and deploy
You can install the operator in your local or cloud cluster by
following the simple steps from below:- Clone this repository to your local environment:
```bash
$ git clone https://github.com/piyush1146115/dummy-operator.git
```
- Change your current directory to the `dummy-operator`
```bash
$ cd dummy-operator
```
- Install the dummy CRD
```bash
$ make install
```- Deploy the dummy-operator to your cluster
```bash
$ make deploy IMG=piyush1146115/dummy-operator:latest
```If all of the above steps were successful, you should see the dummy-operator
running in your kubernetes cluster.## Usage
Create a dummy object in your cluster by applying the following manifest:
```yaml
apiVersion: interview.com/v1alpha1
kind: Dummy
metadata:
name: dummy1
namespace: default
spec:
message: "I'm just a dummy"
```You can also apply the manifest by applying the manifest from `/dummy-operator/config/samples/dummy.yaml`
To get the current status of dummy objects in your `default` namespace:
```
$ kubectl get dummy -n defaultNAME SPECECHO PODSTATUS
dummy1 I'm just a dummy Running
```