Creating two different pods with yaml file
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Creating pod for nginx using yaml
apiVersion: v1
kind: Pod
metadata:
name: nodehelloworld.example.com
labels:
app: helloworld
spec:
containers:
- name: devopsschool1
image: scmgalaxy/nginx-devopsschoolv1
ports:
- name: nginx-port
containerPort: 80
Creating pod for Mysql using yaml
apiVersion: v1
kind: Pod
metadata:
name: abhi.example.com
labels:
app: helloworld
spec:
containers:
- name: devopsschool2
image: webimp/mysql-56-slim
ports:
- name: mysql-port
containerPort: 3306