bulutzincir

command
v1.0.0-GAS.0...-9628651 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

README

Build


microk8s.enable registry

go mod init bulutzincir

go mod tidy

go mod vendor

# change directory to ethereum-operator
cd ethereum-operator

# build the ethereum operator binary
CGO_ENABLED=0 GOOS=linux go build

# build the docker container
docker build -t localhost:32000/ethereum-operator:0.1 .

docker push localhost:32000/ethereum-operator:0.1

Start the Operator

# Create the ethereum operator
$ kubectl create -f ethereum-operator.yaml

# Wait for the pod status to be Running
$ kubectl get pod -l app=ethereum-operator
NAME                              READY     STATUS    RESTARTS   AGE
ethereum-operator-821691060-m5vqp   1/1       Running   0          3m

# View the ethereums CRD
$ kubectl get crd ethereums.bulutzincir.io
NAME                   KIND
ethereums.bulutzincir.io   CustomResourceDefinition.v1beta1.apiextensions.k8s.io

Create the Sample Resource

# Create the ethereum
$ kubectl create -f ethereum-resource.yaml

# See the ethereum resource
$ kubectl get ethereums.bulutzincir.io
NAME       KIND
myethereum   Sample.v1alpha1.bulutzincir.io

Modify the Sample Resource

Change the value of the Hello property in ethereum-resource.yaml, then apply the new yaml.

kubectl apply -f ethereum-resource.yaml

Logs

Notice the added and modified Hello= text in the log below

$ kubectl logs -l app=ethereum-operator
Getting kubernetes context
Creating the ethereum resource
Managing the ethereum resource
Added Sample 'myethereum' with Hello=world!
Updated ethereum 'myethereum' from world to goodbye!

Cleanup

kubectl delete -f ethereum-resource.yaml
kubectl delete -f ethereum-operator.yaml
kubectl delete crd ethereums.bulutzincir.io

Documentation

Overview

Package main for a ethereum operator

Package main for a ethereum operator

Directories

Path Synopsis
pkg
apis/bulutzincir/ethereum/v1alpha1
Package v1 is the v1 version of the API.
Package v1 is the v1 version of the API.
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/ethereum/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/ethereum/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL