You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2020. It is now read-only.
This project is a component of the [Operator Framework](https://github.com/operator-framework), an open source toolkit to manage Kubernetes native applications, called Operators, in an effective, automated, and scalable way. Read more in the [introduction blog post](https://coreos.com/blog/introducing-operator-framework).
2
+
3
+
# Operator SDK Samples - Helm
4
+
This directory contains samples of operators powered by Helm built using the [operator-sdk][operator_sdk]. To learn more about creating an operator that leverages Helm, check out the [Helm user guide][helm_user_guide].
Copy file name to clipboardExpand all lines: helm/memcached-operator/README.md
+17-13Lines changed: 17 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,20 @@
2
2
3
3
## Overview
4
4
5
-
This Memcached operator is a simple example operator based in Helm built with the [Operator SDK][operator_sdk].
5
+
This Memcached operator is a simple example of the Operator SDK Helm-based operator. It is based on the [`stable/memcached` chart][stable/memcached].
6
6
7
7
## Prerequisites
8
8
9
9
-[docker][docker_tool] version 17.03+
10
-
-[kubectl][kubectl_tool] v1.11.3+
11
-
-[operator_sdk][operator_install]
12
-
- Access to a Kubernetes v1.11.3+ cluster
10
+
-[kubectl][kubectl_tool] v1.12+
11
+
-[operator SDK][operator_install]
12
+
- Access to a Kubernetes v1.14.5+ cluster
13
13
14
14
## Getting Started
15
15
16
16
### Cloning the repository
17
17
18
-
Checkout this Memcached Operator repository
18
+
Checkout this Memcached operator repository
19
19
20
20
```
21
21
$ mkdir operator-framework
@@ -38,18 +38,23 @@ $ docker push $IMAGE
38
38
39
39
### Using the image
40
40
41
+
Update the operator manifest to use the built image name (if you are performing these steps on OSX, see note below)
42
+
41
43
```
42
-
# Update the operator manifest to use the built image name (if you are performing these steps on OSX, see note below)
43
44
$ sed -i 's|REPLACE_IMAGE|quay.io/example-inc/memcached-operator|g' deploy/operator.yaml
44
-
# On OSX use:
45
+
```
46
+
47
+
**Note**
48
+
If you are performing these steps on OSX, use the following `sed` command instead:
49
+
```
45
50
$ sed -i "" 's|REPLACE_IMAGE|quay.io/example-inc/memcached-operator|g' deploy/operator.yaml
46
51
```
47
52
48
53
### Installing
49
54
50
55
Run `make install` to install the operator. Check that the operator is running in the cluster, also check that the example Memcached service was deployed.
51
56
52
-
Following the expected result.
57
+
Run the following command to verify that the installation was successful:
**NOTE**To have further information about how to develop Helm operators with [Operator-SDK][operator_sdk] check the [Helm User Guide for Operator-SDK][helm_guide]
93
+
**NOTE**For further information about how to develop Helm operators with OperatorSDK, read the [Helm User Guide for OperatorSDK][helm_guide]
89
94
90
95
### Extras
91
96
92
-
Mote that this project was created by using the following command which means that it is using the [stable/memcached][stable/memcached]
97
+
This project was created by using the following command, which means that it is using the official [stable/memcached][stable/memcached] helm chart.
93
98
94
99
```shell
95
100
operator-sdk new memcached-operator --api-version=cache.example.com/v1alpha1 --kind=Memcached --type=helm --helm-chart=stable/memcached
0 commit comments