Pod with Two container
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 a Pod with two containers in 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
- name:devopsschool2
image: webimp/mysql-56-slim
ports:
- name: mysql-port
containerPort: 3306