Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions deploy/example-single-node-cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: "echo.redhat.com/v1"
kind: "EchoApp"
metadata:
name: "echo-local"
spec:
size: 1
image: "docker.io/tohinkashem/echo:1.0"
8 changes: 0 additions & 8 deletions deploy/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,13 @@ rules:
- ""
resources:
- pods
- services
- endpoints
- persistentvolumeclaims
- events
- configmaps
- secrets
verbs:
- "*"
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- "*"

Expand Down
20 changes: 19 additions & 1 deletion readme.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Steps
## Building an Operator with the operator-sdk

```bash
# build operaotr-sdk
Expand Down Expand Up @@ -54,3 +54,21 @@ type EchoAppStatus struct {
```bash
$ operator-sdk generate k8s
```

## Deploying the operator
```bash
# Create the custom resource definition
$ kubectl create -f deploy/crd.yaml

# Create the Roleand create the Role Binding
$ kubectl create -f deploy/rbac.yaml

# Deploy the operator
$ kubectl create -f deploy/operator.yaml
```

## Deploying a single node echo cluster
```bash
# Deploy the cluster
$ kubectl create -f deploy/example-single-node-cluster.yaml
```