From the course: Kubernetes Essential Training: Application Development
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Working with namespaces - Kubernetes Tutorial
From the course: Kubernetes Essential Training: Application Development
Working with namespaces
- [Instructor] In this video, I'm going to get hands on with namespaces. Now, since they're resources, we can make them declaratively with YAML files, just like I've been telling you to do all through this course, but practically speaking, that gets a bit awkward. If we have a VAR for namespace, and then a file for something that's in that namespace, we can't just say kubectl apply -f on the whole directory, because we need the namespace file to be deployed before the other file, so that the namespace exists when the other object tries to go into it and we can't guarantee that's going to happen. We can't guarantee that ordering will be there. That's kind of an imperative thing, and kubernetes is almost too declarative for its own good here. So a lot of people don't bother and they just create them by hand. The way to do that, of course, is kubectl create namespace. I'm going to make one here for a team called team1.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Namespaces in Kubernetes4m 19s
-
(Locked)
Working with namespaces6m 40s
-
(Locked)
Adding functionality with sidecars1m 58s
-
(Locked)
Adding a service mesh using sidecars6m 40s
-
(Locked)
Analyzing traffic with Linkerd2m 58s
-
(Locked)
Extending Kubernetes with operators and Custom Resource Definitions8m 32s
-
(Locked)
-
-