one pod with two containers

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now
apiVersion: v1
kind: Pod
metadata:
  name: multi-container
  labels:
    app: helloworld
spec:
  containers:

#container one
  - name: devopsschool1
    image: scmgalaxy/nginx-devopsschoolv1
    ports:
    - name: nginx-port
      containerPort: 80

#container two
  - name: devopsschool2
    image: webimp/mysql-56-slim
    ports:
    - name: mysql-port
      containerPort: 3306