Kubernetes Operator | Creating Kubernetes Operator using operator-sdk | kubebuilder | ADITYA JOSHI |

  Рет қаралды 12,450

Aditya Joshi

Aditya Joshi

Күн бұрын

Пікірлер: 43
@ChangWeiZhe
@ChangWeiZhe Жыл бұрын
As a learning operator-sdk, this example and demo is a good first step!
@adityajoshi12
@adityajoshi12 Жыл бұрын
Glad you liked it.
@liorlew
@liorlew 8 ай бұрын
very good tutorial, especially because of the need of debug.
@adityajoshi12
@adityajoshi12 7 ай бұрын
Glad it helped you
@TechEats
@TechEats 2 ай бұрын
Thanks a lot for making this video. What do we need to do if we have deployment specific start-end times and replica number?
@abhishekkumar-j7y9h
@abhishekkumar-j7y9h Жыл бұрын
Great session, thanks for explaining!!!
@adityajoshi12
@adityajoshi12 Жыл бұрын
Glad it helped you
@AyşegülÖzkayaEren
@AyşegülÖzkayaEren 10 ай бұрын
Thank you very much. I am a beginner and it was very useful for me. In which case should we use kubebuilder and in which case operator-sdk?
@adityajoshi12
@adityajoshi12 10 ай бұрын
Thanks, you can use any of the framework . Operator-sdk can be more helpful if you want to deploy the operator to operator-hub
@omerapl3511
@omerapl3511 9 ай бұрын
great video! thanks
@adityajoshi12
@adityajoshi12 9 ай бұрын
Glad it helped you
@BZValoche
@BZValoche Ай бұрын
Looking you debug a call to Update(...) when you never modified the deployment variable was painful ;-D
@XiaoboLiang
@XiaoboLiang Жыл бұрын
Hi, could you suggest whether we should use operator sdk or kubebuilder?
@adityajoshi12
@adityajoshi12 Жыл бұрын
Operator-sdk is build using the kube-builder, but operator sdk can be used for creating helm and ansible operator. Also it supports OLM
@XiaoboLiang
@XiaoboLiang Жыл бұрын
@@adityajoshi12 So I guess, if only develop operator with go, then there is basically no difference between this 2 choices?
@adityajoshi12
@adityajoshi12 Жыл бұрын
Go-based operators are very flexbile
@pranavsharma7479
@pranavsharma7479 Жыл бұрын
bhaiya this scaler is a resource type (like pods) in k8? coz i am not finding this in k8 docs,.
@adityajoshi12
@adityajoshi12 Жыл бұрын
This the the custom resource that we created in the video, you can create any resource like this
@roopeshsaravanan8609
@roopeshsaravanan8609 10 ай бұрын
Hi! I am getting this error when running the "mak run" command, "ERROR controller-runtime.client.config unable to get kubeconfig {"error": "invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable", "errorCauses": [{"error": "no configuration has been provided, try setting KUBERNETES_MASTER environment variable"}]}" I think the error is because that the program is running outside of the cluster. Any solution to resolve the error? BTW, I am using Kubebuilder to build my operator.
@pranavsharma7479
@pranavsharma7479 Жыл бұрын
can you post some more cases on operators using operator sdk
@adityajoshi12
@adityajoshi12 Жыл бұрын
Sure,
@geetalamkuche9490
@geetalamkuche9490 Жыл бұрын
Nice
@dhirajlakhane2786
@dhirajlakhane2786 8 ай бұрын
hey aditya , please add next video to deploy operator to cluster. if you have already uploaded please share the link ,not able to find that one. thank you
@adityajoshi12
@adityajoshi12 8 ай бұрын
I will have to create one
@VishalSaugat
@VishalSaugat Жыл бұрын
Hey @Aditya, is it possible to get the logs for custom resources provisioned ?
@adityajoshi12
@adityajoshi12 Жыл бұрын
CRDs don’t have the logs, it’s the underneath resources that emit logs like pods
@shashikumarv276
@shashikumarv276 8 ай бұрын
Have you created the second part of this video? I meant deploying this operator to kubernetes cluster (Production)
@adityajoshi12
@adityajoshi12 8 ай бұрын
Not yet
@shashikumarv276
@shashikumarv276 8 ай бұрын
Any plans?
@asutoshpanda1508
@asutoshpanda1508 Жыл бұрын
how to setup a server, then write crd for that server image, write operator for it and enable the mechanism such that even if you modify something in the manifests like adding some label or new upgrade etc then the pods shouldn't restart but the changes should be implemented?
@adityajoshi12
@adityajoshi12 Жыл бұрын
You should check the config reloader, they work in similar way. When you make any changes to the configuration, the changes are applied seamlessly.
@kartik962
@kartik962 8 ай бұрын
I want to use clientset for my use case how can i implement that without clientset i am not able to get my scaler
@adityajoshi12
@adityajoshi12 8 ай бұрын
You can generate the clientset and start using them in other projects
@scrappy__coco
@scrappy__coco 10 ай бұрын
Hi @Aditya want to ask you, With recent updated version the build is failing each time citing various packages and methods as reason, whats your advice which version should we use to make sure to build it successfully. However i want to stay updateed with newer versions but it seems there is no specific controller-runtime, go-client and other packages version that is stable. If you have any link to keep the versions stable you can share also. Please refer us to a stable package version as the newer ones are not that stable. Thank you
@scrappy__coco
@scrappy__coco 10 ай бұрын
By versions and packages i mean the modules that are listed in go.mod file which are not always stable to build an operator-sdk
@melianiabdelghani7146
@melianiabdelghani7146 Жыл бұрын
can we interract with kubelet directly from the operator ?
@adityajoshi12
@adityajoshi12 Жыл бұрын
Interesting question, well there are very few API available for kubelets, I am not sure where they can be accessed from the SDK but there are HTTP endpoints. This might help you www.deepnetwork.com/blog/2020/01/13/kubelet-api.html github.com/cyberark/kubeletctl
@sharanyameiyyappan
@sharanyameiyyappan Жыл бұрын
Hi @Aditya and all, can anyone help me with the operator-sdk installation in windows 10
@adityajoshi12
@adityajoshi12 Жыл бұрын
Please check this events.redhat.com/accounts/register123/redhat/events/701f20000012tgfaaq/12-Operator_Framework_Workshop_Operator-SDK_Installation.pdf
@pranavsharma7479
@pranavsharma7479 Жыл бұрын
why you used adddress operator &replicas, in the line Deployment.spec.Replicas != &replicas. isnt it shd be without &
@adityajoshi12
@adityajoshi12 Жыл бұрын
Replicas is of type *int32
@pranavsharma7479
@pranavsharma7479 Жыл бұрын
@@adityajoshi12 and while fetching deployment instance from k8 its defualt value will be 1 right that we check initially using above if condiiton
Writing Kubernetes Controllers
18:28
Peter Jausovec
Рет қаралды 17 М.
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 5 МЛН
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
Это было очень близко...
00:10
Аришнев
Рет қаралды 4,8 МЛН
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 338 М.
Everything you need to know about Kubebuilder: Write operators like a pro
32:02
Cloud Native Skunkworks
Рет қаралды 15 М.
Demo: Creating Golang-based Operators using Operator SDK 1.2.0
14:01
Austin Macdonald
Рет қаралды 10 М.
What The Heck Are Kubernetes Resources, CRs, CRDs, Operators, etc.?
21:08
Kubernetes Operator simply explained in 10 mins
10:09
TechWorld with Nana
Рет қаралды 225 М.
Get on board with Kubernetes Operators!
37:27
Null Labs
Рет қаралды 8 М.
How to build Kubernetes Operators for DevOps in just a few minutes!
14:09
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 5 МЛН