vSphere with Tanzu on NSX-T: Part 6 – Pods & Deployments

vSphere with Tanzu on NSX-T: Part 6 – Pods & Deployments

This is part 6 of a series of videos discussing vSphere with Tanzu on NSX-T where I will demonstrate how to configure and operate a vSphere with Tanzu on NSX-T. In this video we look at the creation of Pods and Deployments and we’ll look at what’s being configured in NSX-T and how to discover all namespace related networking objects.

busybox-pod.yaml

apiVersion: v1
kind: Pod
metadata:
  name: busybox
  namespace: alpha
spec: 
  containers: 
  - name: busybox
    image: 192.168.121.3/alpha/busybox:latest
    # image: busybox:latest
    command: 
      - sleep
      - "3600"
    imagePullPolicy: IfNotPresent
  restartPolicy: Always

nginx-deployment.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  namespace: alpha
spec:
  selector:
    matchLabels:
      app: nginx
  replicas: 4
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        # image: nginx:latest
        image: 192.168.121.3/alpha/nginx:latest
        ports:
        - containerPort: 80

Leave a Reply

Your email address will not be published. Required fields are marked *