Deploying on Kubernetes by using Terraform
25.4 هزار بار بازدید -
3 سال پیش
-
This is a simple example
This is a simple example to show how to use Terraform in Visual Studio Code to deploy Kubernetes resources.
- Define the Terraform provider file and specify the kubernetes host address.
- Define the Terraform deployment file to define the Kubernetes Deployment resource.
- Deploy the kubernetes resources by using Terraform
- Destroy the kubernetes resources by using Terraform
In this video, I have used a sample code from a course in Linkedin and its Author is 'Karthik Gaekwad';
---------------------------------------
Author : Karthik Gaekwad
Course : Learning Kubernetes (Linkedin)
---------------------------------------
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld
spec:
selector:
matchLabels:
app: helloworld
replicas: 1 # tells deployment to run 1 pods matching the template
template: # create pods using pod definition in this template
metadata:
labels:
app: helloworld
spec:
containers:
- name: helloworld
image: karthequian/helloworld:latest
ports:
- containerPort: 80
I appreciate your support me on Paypal for more educational videos : https://paypal.me/pmoosavinezhad
- Define the Terraform provider file and specify the kubernetes host address.
- Define the Terraform deployment file to define the Kubernetes Deployment resource.
- Deploy the kubernetes resources by using Terraform
- Destroy the kubernetes resources by using Terraform
In this video, I have used a sample code from a course in Linkedin and its Author is 'Karthik Gaekwad';
---------------------------------------
Author : Karthik Gaekwad
Course : Learning Kubernetes (Linkedin)
---------------------------------------
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloworld
spec:
selector:
matchLabels:
app: helloworld
replicas: 1 # tells deployment to run 1 pods matching the template
template: # create pods using pod definition in this template
metadata:
labels:
app: helloworld
spec:
containers:
- name: helloworld
image: karthequian/helloworld:latest
ports:
- containerPort: 80
I appreciate your support me on Paypal for more educational videos : https://paypal.me/pmoosavinezhad
3 سال پیش
در تاریخ 1399/11/12 منتشر شده
است.
25,451
بـار بازدید شده