Skip to content

Commit

Permalink
add deploy.sh for simpler deployment
Browse files Browse the repository at this point in the history
This makes it simpler for users to deploy the operator. Users
won't need a checkout of the github repo, instead they can just
run a shell script which takes care of creating all ressources,
deploying the operator and creating a custom ressource.

Changed README.md to reflect these changes.

Signed-off-by: Jens Freimann <jfreimann@redhat.com>
  • Loading branch information
jensfr committed Feb 4, 2021
1 parent 3020911 commit 77b1ce8
Show file tree
Hide file tree
Showing 4 changed files with 562 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Expand Up @@ -8,6 +8,7 @@ An operator to perform lifecycle management (install/upgrade/uninstall) of [Kata

### Openshift

#### with a git repo checkout
1. Make sure that `oc` is configured to talk to the cluster

2. Clone the Kata Operator repository and check out the branch matching with the Openshift version. e.g. If you are running Openshift 4.7 then,
Expand All @@ -29,8 +30,23 @@ An operator to perform lifecycle management (install/upgrade/uninstall) of [Kata
oc create -f config/samples/kataconfiguration_v1_kataconfig.yaml
```

#### without a git repo checkout
1. Make sure that `oc` is configured to talk to the cluster

2. To deploy the operator and create a custom resource (which installs Kata on all worker nodes), run
``` curl https://raw.githubusercontent.com/openshift/kata-operator/master/deploy/install.sh | bash ```

This will create all necessary resources, deploy the kata-operator and also create a custom resource.
See deploy/deploy.sh and deploy/deployment.yaml for details.

To only deploy the operator without automatically creating a kataconfig custom resource just run
``` curl https://raw.githubusercontent.com/openshift/kata-operator/master/deploy/deploy.sh | bash ```

You can then create the CR and start the installation with
``` oc apply -f https://raw.githubusercontent.com/openshift/kata-operator/master/config/samples/kataconfiguration_v1_kataconfig.yaml ```

Please follow [this](#selectively-install-the-kata-runtime-on-specific-workers) section if you wish to install the Kata Runtime only on selected worker nodes.

#### Monitoring the Kata Runtime Installation
Watch the description of the Kataconfig custom resource
```
Expand Down
4 changes: 4 additions & 0 deletions deploy/deploy.sh
@@ -0,0 +1,4 @@
#!/bin/sh

oc apply -f https://raw.githubusercontent.com/openshift/kata-operator/master/deploy/deploy.yaml && \
oc adm policy add-scc-to-user privileged -z default -n kata-operator-system

0 comments on commit 77b1ce8

Please sign in to comment.