From the course: Spring on Kubernetes: Deploying and Managing Cloud-Native Applications

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Building the initial scaffolding

Building the initial scaffolding

- [Instructor] Okay, let's get ready to start deploying our application to Kubernetes by building out the scaffolding for this deployment. The first thing that I want to do is open up wisdom-api and I'm going to create a new folder in here, and we will call this deployment. And with our deployment, we're going to create a new file, and the first file that we're going to call is namespace.yaml. Now there are several ways to build a namespace. This is the way that I'm going to walk through just so you can see what actually happens. So we're going to set our apiVersion: v1, the kind: Namespace, and then we will add our metadata to it. And the first piece of metadata that we will add will be a name: wisdom. And that's actually the only piece of metadata that we're going to need for this. Now let's go ahead and create another new file, and this one will be called secret.yaml. Now managing secrets in this way, especially when you store them in source control, is not always the best way to…

Contents