Crossplane Composition Functions: Unleashing the Full Potential
ฝัง
- เผยแพร่เมื่อ 18 พ.ค. 2024
- This video explores the power of Crossplane Composition Functions, showcasing how they unlock the full potential of cloud-native infrastructure provisioning and management. It covers their benefits, implementation techniques, and real-world use cases, offering an introduction guide to harnessing the full potential of Crossplane.
#Crossplane #Kubernetes #InfrastructureManagement
Consider joining the channel: / devopstoolkit
▬▬▬▬▬▬ 🔗 Additional Info 🔗 ▬▬▬▬▬▬
➡ Gist with the commands: gist.github.com/vfarcic/c1f15...
🔗 Crossplane Composition Functions: docs.crossplane.io/latest/con...
🎬 Is Timoni With CUE a Helm Replacement?: • Is Timoni With CUE a H...
🎬 Is CUE The Perfect Language For Kubernetes Manifests (Helm Templates Replacement)?: • Is CUE The Perfect Lan...
🎬 How To Shift Left Infrastructure Management Using Crossplane Compositions: • How To Shift Left Infr...
🎬 Terraform vs. Pulumi vs. Crossplane - Infrastructure as Code (IaC) Tools Comparison: • Terraform vs. Pulumi v...
🎬 Crossplane - GitOps-based Infrastructure as Code through Kubernetes API: • Crossplane - GitOps-ba...
▬▬▬▬▬▬ 💰 Sponsoships 💰 ▬▬▬▬▬▬
If you are interested in sponsoring this channel, please use calendar.app.google/Q9eaDUHN8... to book a timeslot that suits you, and we'll go over the details. Or feel free to contact me over Twitter or LinkedIn (see below).
▬▬▬▬▬▬ 👋 Contact me 👋 ▬▬▬▬▬▬
➡ Twitter: / vfarcic
➡ LinkedIn: / viktorfarcic
▬▬▬▬▬▬ 🚀 Other Channels 🚀 ▬▬▬▬▬▬
🎤 Podcast: www.devopsparadox.com/
💬 Live streams: / devopsparadox
▬▬▬▬▬▬ ⏱ Timecodes ⏱ ▬▬▬▬▬▬
00:00 Introduction to Crossplane Compositions
01:59 Difficulties in Defining Crossplane Compositions
07:26 Static Behavior of Crossplane Compositions
11:17 Crossplane Composition Functions
14:38 How To Develop Crossplane Composite Functions - วิทยาศาสตร์และเทคโนโลยี
What do you think of Composite Functions?
Trying to use crossplane is like drive a hi-tech car with many cool features but bicycle instead of engine. I feel frustrated about how overcomplicated it be rather terraform and i'm start to think that creating dumb and simple cronjob pods with terraform inside them is simplier than do install providers, configure them with dirty hacks (yes, vault-provider with k8s auth?), create XRD, OVERCOMPLICATED and totally useless Compositions and debugging these bullshit.
@cobasaltofficial9495 it all depends on how comfortable you are with kubernetes. Most of crossplane is easy and feels like being at home to experienced kubernetes users. On the other hand it can be overwhelming to others.
Huge step for crossplane. My biggest issues previously have been lack of dry running and xrds being limited to declarative syntax. This seems to take huge strides on both of those issues
How do you run dry-run with Crossplane (equivalent of "terraform test")?
@@jirityr AFAIK you can't. But with this you could probably write your own functions and test run them locally
@@lulzmachineify So I would have to write functions, for example in Go, which would test the infra besed on the function input? That sounds to me like a bad solution. That's like I would have to write Terratest code to be able to find out what's gonna change on my next run. Such functionality should be integrated into the Crossplane and not having to develop something extra. My opinion on Crossplane didn't change - no test run, no Crossplane on my cluster.
@jirityr quite the opposite. Now you can output resources from compositions locally.
@@DevOpsToolkitHow does the local output of composition (I guess using the xrender?) help me to determine what will change when the composition is applied? I wanna know what will be added, removed or changed before I push any infrastructure change.
👀-- I've been waiting for composite functions to graduate to Beta!
My current use case is a for composition that provisions EKS clusters where I want to be able to dynamically configure N nodegroups from the claim!
Yeah. That use-case was on top of my list as well.
Nice
Viktor! try use bat instead of cat for the videos, so well have color highlight syntax!
I will not use `bat` directly since I'm trying to make the material in the videos as accessible as possible so I'm trying to avoid any tools that are not absolutely necessary. However, starting with the last few videos, I do use `cat` aliased to `bat`, so colors are now there. They're making the life of the person who edits my raw material a bit more complicated, but the result is hopefully a better experience.
Please check one of the latest videos and let me know whether they now show code well (and colored).
@@DevOpsToolkit that's exacly what I expect! Thank you!
Nice explanation. Would it be possible to scale resources using these functions? Create 2 servers, but scale down/up based on some condition? Or are these only ran when you apply the claim?
Functions are run on every iteration crossplane makes so you could do that.
Do Crossplane Functions 1:1 replace the desired functionality of creating a Tekton Controller for Crossplane to define Tekton TaskRun and PipelineRun resources in its Compositions?
I'm not sure I understood. Is there a tekton controller for crossplane?
@@DevOpsToolkit Not yet. There’s one for Ansible. I was building the Tekton Controller myself, and was wondering if I should stop and just use Crossplane Functions
That depends on what you're trying to accomplish. It might be easier to go through it through a chat. Send me a DM on Twitter or LinkedIn and I'll get back to you with a calendar link.
The xrender tool doesn't work for me, I installed using the gist command. It seems they have deprecated the github. And it's now shipped as part of crossplane cli.
Yeah. Now it's part of crossplane CLI.