Exactly what I was looking for, you're an amazing teacher, thank you and God bless you. subbed!!
@luabba3 ай бұрын
So, if declared map/populate/clear in a separate function, the heap size should return back to 0, once the function returns and GC runs.
@EdwardViaene2 ай бұрын
Correct, this is only as long as the map exists and is not cleaned up by the GC.
@КириллКужукин-у6р3 ай бұрын
I don't understand why you need 2 clients (mgr client and client set). In my opinion you can use only one client from manager for operations with any types of k8s resources. Can you explain it please?
@EdwardViaene3 ай бұрын
In theory that should work indeed, but in practice, it didn't work out that well, because of version differences between the custom API packages you need in combination with a client that you need for a specific kubernetes version.
@КириллКужукин-у6р3 ай бұрын
@@EdwardViaene Thanks)
@jhonsen98424 ай бұрын
Hey I think you have somecourses in udemy. Could you please suggest some good books to learn these things in depth along side Golang. All though i have your golang course with cloud and devops. But i want to go little deep.
@EdwardViaene2 ай бұрын
I’m not aware of any books that go deeper. At some point you just need to dig in the Kubernetes docs and what’s available on GitHub in the kubernetes packages. Using the kubernetes go client can help you to ge more insights for sure.
@pratham_computerpcce20844 ай бұрын
I have few doubts regarding go lang operators, wanted to connect with you
@EdwardViaene4 ай бұрын
You can find me on LinkedIn, twitter, or udemy if you want to message me directly.
@pratham_computerpcce20844 ай бұрын
Can you please create more in depth videos series on this topic with more realistic go lang operator examples!
@EdwardViaene4 ай бұрын
What are you looking for exactly? Managing specific external services or something else?
@amineghanmi-w1qАй бұрын
@@EdwardViaene yes everything
@regexgenerator4 ай бұрын
Oh wow, great stuff! Still learning but do we really just allow go to allocate this much memory for such a small operation? Is there anyway to dis-allocate once operations are done?
@EdwardViaene4 ай бұрын
The garbage collector will remove it from memory once you don't need it anymore (when you don't have any references anymore to a variable - the map in this case)
@regexgenerator4 ай бұрын
A map is "just a dict" so its faster to just do dict["key"].exists() in Python. New to golang, so im trying to rewire my brain to using golang patterns.
@regexgenerator4 ай бұрын
Is it computationally expensive if the address changes? Because the slice capacity is dynamically changing when appending? Is a better way for performance is to somehow know the capacity of the operation you're performing?
@EdwardViaene4 ай бұрын
it's going to be negligible for most applications, but it's something to be aware of once you start working with a lot of data. If you know the size of your slice, then you could use make() to initialize it at the right size.
@razvansodoleanu97555 ай бұрын
Great video. Do I need to register a scheme even if I want to work with secrets?
@EdwardViaene5 ай бұрын
If you're working with a build-in resource and not a custom resource, then you don't need to register a custom scheme. You can find an example of this here: github.com/kubernetes-sigs/controller-runtime/blob/main/examples/builtins/main.go#L67
@razvansodoleanu97555 ай бұрын
@@EdwardViaene Thank you
@is0p0d6 ай бұрын
Go noob here so genuine question - spent my entire career programming in C/C++ - whats the point of having a capacity if it automatically resizes anyway?
@EdwardViaene6 ай бұрын
When you know the capacity you need, you can specify it, and it'll not resize. It's more efficient, as it doesn't need to resize, and resizing means that your underlying address changes, which might not be desired. Have a look at the video shared access in goroutines (kzbin.info/www/bejne/g4abdoynaaeAobM), which has a use case where you don't want to resize your slice. It's also the append function that is going to resize your slice, so if you access your slice directly with slice[x], it's not automatically going to resize. Copying slices is going to be more efficient if you can specify the same capacity as the previous slice.
@is0p0d6 ай бұрын
@@EdwardViaene thanks!
@olexandr.v6 ай бұрын
can barely see the code
@EdwardViaene6 ай бұрын
You can try to pick a higher resolution. On lower resolution, the text is not very well visible.
@regexgenerator4 ай бұрын
Its fine for me!
@xuanthanhtraninh6427 ай бұрын
Informative.
@karanpk287 ай бұрын
Can you share the presentation template with us?
@thisisreallyme31309 ай бұрын
WOW I just found your series (after watching so so many Golang videos). Your HelloWorld that dives into HTTP GET and JSON was great, but now onto DNS serving this is amazing. While I already had another Udemy course on GoLang, I just purchased yours as well :-) Like the way project are evolved/iterated on.
@thisisreallyme31309 ай бұрын
This is probably the best Hello World I've ever seen, especially when (for a lot of people) your eventual goal is in fact, an HTTP GET and JSON parsing. Cheers.
@dermuschelschluerfer11 ай бұрын
one suggestion: with tests you should still use a real connection instead of mocking net.Conn. Also, really great display of TDD, I like how you presented the concepts before implementing and taking a very planned approach
@dekooks15439 ай бұрын
why not just use the mocked object ?
@yvettelau914311 ай бұрын
this is a good turtorial! Thank you!
@cipcip4986 Жыл бұрын
so you actually don’t need to auth to the cluster in the webhook go code. Thanks
@tigron1530 Жыл бұрын
Yo great tutorial and explqnation, thanks you so much for it!
@Soundwave-F7Z Жыл бұрын
Thank you Edward for the great video! Just wondering why don’t we cut the AWS load balancer out and just make the client requests directly to the ingress gateway?
@arthas1632 Жыл бұрын
This is amazing, thanks for this incredible video Sir Edward! Just one question, how do you go about adding the caching layer? What pattern would we be using if we want to implement cache?
You are an amazing instructor. I have learned more in one hour than in many other videos lasting 2-3hrs. Your style is conscise and dense. Love it! 👍👍👍
@magesh48062 жыл бұрын
If possible can you add steps on how to configure the same with self-signed certificates? Like easy to follow step to do the same
@Abeel_A72 жыл бұрын
hii sir, I am currently watching your course for terraform. you staring the variables with $ where I dont find it in the other references. can anyone tell me what is the difference between these two statement please? public_key = "${file("${var.PATH_TO_PUBLIC_KEY}")}" and public_key = file(var.PATH_TO_PUBLIC_KEY) thank you
@EdwardViaene2 жыл бұрын
Old syntax & new syntax. The syntax without the dollar sign is preferred. Using this syntax is only necessary when you need to do concatenations (putting strings together)
@itaybeyder97012 жыл бұрын
where can i find the repo with the helloworld app ?
@lihireisman65832 жыл бұрын
WOWWWWWW GREAT!!!!!
@joelmck2 жыл бұрын
Excellent breakdown, thank you!
@hemanthreddygaddam3532 жыл бұрын
Sir do more youtube videos you are explaing about terraform I like the way u make it short and meaning full We want more videos from u
@salimhossain21923 жыл бұрын
kubectl: command not found, no guide about this kubectl? why man?
@subhash06093 жыл бұрын
can we attach/replace an iam role on an running ec2 instance by terraform
@HXYZZZ3 жыл бұрын
very helpful and easy to follow. Thanks Edward !!
@Skandansh3 жыл бұрын
crisp and clear
@faisalmorensya49363 жыл бұрын
this is very good Edwards! thanks!
@sf29983 жыл бұрын
velly good
@jaywang72853 жыл бұрын
love tis video istio servicemesh
@GreymanTraders3 жыл бұрын
Hi Edward, very intuitive! I am a Udemy subscriber of your course. I cannot find the "crds.yaml" file in your README file as below - "kubectl apply -f ~/istio-1.7.6/install/kubernetes/helm/istio/templates/crds.yaml". I tried to browse through all the ISTIO directory but could not find one. Can you please help me?? thanks.
@GreymanTraders3 жыл бұрын
vagrant@vagrant-ubuntu-trusty-64:~/istio-1.7.6$ istioctl install /kubernetes/helm/istio/templates/crds.yaml Error: accepts 0 arg(s), received 1
@GreymanTraders3 жыл бұрын
vagrant@vagrant-ubuntu-trusty-64:~/istio-1.7.6$ istioctl install -f /kubernetes/helm/istio/templates/crds.yaml Error: failed to install manifests: open /kubernetes/helm/istio/templates/crds.yaml: no such file or directory
@EdwardViaene3 жыл бұрын
@@GreymanTraders If you have downloaded istioctl, you don't need the yaml files. You can run istioctl install - see istio.io/latest/docs/setup/getting-started/#download The yaml files are meant to be used in conjunction with kubectl. When the demos were created, you couldn't run the install using istioctl. The easiest way now to install istio is using istioctl install.
@tusharchatterjee89864 жыл бұрын
Edward , Do you have any demo.
@anishalder2204 жыл бұрын
Nice video , One issue : Logtrail is not showing all pods in all system , please help me
@yogavigneshwaranm12724 жыл бұрын
Thank you!
@rasthana4 жыл бұрын
Thanks for your effort. This is very helpful.
@ugoariano79574 жыл бұрын
Great Overview! Thanks a lot
@balabhaskararaoguntupalli12754 жыл бұрын
thanks,
@ruslanramazanov58144 жыл бұрын
man, you r great ;)
@swayamtube4 жыл бұрын
I am searching for terraform api code to launch ec2 instances automatically. Not getting.please help