Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 849 Bytes

File metadata and controls

34 lines (27 loc) · 849 Bytes

Multi-Container Pods

In this section, we will take a look at multi-container pods

Monolith and Microservices

loga

Multi-Container Pods

mcp

  • To create a new multi-container pod, add the new container information to the pod definition file.
    apiVersion: v1
    kind: Pod
    metadata:
      name: simple-webapp
      labels:
        name: simple-webapp
    spec:
      containers:
      - name: simple-webapp
        image: simple-webapp
        ports:
        - ContainerPort: 8080
      - name: log-agent
        image: log-agent
    
    mcpc

K8s Reference Docs