Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 default

NAME SPECECHO PODSTATUS
dummy1 I'm just a dummy Running
```