Last active
July 12, 2020 01:54
-
-
Save jankleinert/42b489d54fc6632265d3dd134c0a0bde to your computer and use it in GitHub Desktop.
files for etcd demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------etcd-og.yaml------- | |
apiVersion: operators.coreos.com/v1 | |
kind: OperatorGroup | |
metadata: | |
name: demo | |
namespace: demo | |
spec: | |
targetNamespaces: | |
- demo | |
------------------------- | |
-----etcd-sub.yaml------- | |
apiVersion: operators.coreos.com/v1alpha1 | |
kind: Subscription | |
metadata: | |
name: etcd | |
namespace: demo | |
spec: | |
channel: singlenamespace-alpha | |
installPlanApproval: Automatic | |
name: etcd | |
source: community-operators | |
sourceNamespace: openshift-marketplace | |
------------------------- | |
------etcd-cluster.yaml-- | |
apiVersion: etcd.database.coreos.com/v1beta2 | |
kind: EtcdCluster | |
metadata: | |
name: example | |
spec: | |
size: 1 | |
version: 3.2.13 | |
------------------------- | |
Feeling fancy? | |
ETCD_VER=v3.3.18 | |
# choose either URL | |
GOOGLE_URL=https://storage.googleapis.com/etcd | |
GITHUB_URL=https://github.com/etcd-io/etcd/releases/download | |
DOWNLOAD_URL=${GOOGLE_URL} | |
rm -f /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz | |
rm -rf /tmp/etcd-download-test && mkdir -p /tmp/etcd-download-test | |
curl -L ${DOWNLOAD_URL}/${ETCD_VER}/etcd-${ETCD_VER}-linux-amd64.tar.gz -o /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz | |
tar xzvf /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz -C /tmp/etcd-download-test --strip-components=1 | |
rm -f /tmp/etcd-${ETCD_VER}-linux-amd64.tar.gz | |
/tmp/etcd-download-test/etcd --version | |
/tmp/etcd-download-test/etcdctl version | |
/tmp/etcd-download-test/etcdctl --endpoints=example-client:2379 put foo bar | |
/tmp/etcd-download-test/etcdctl --endpoints=example-client:2379 get foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment