apiVersion: v1 kind: Namespace metadata: name: dev-app1 --- apiVersion: apps/v1 kind: Deployment metadata: name: ubuntu-16-04 labels: app: ubuntu-16-04 namespace: dev-app1 spec: replicas: 1 selector: matchLabels: app: ubuntu-16-04 template: metadata: labels: app: ubuntu-16-04 spec: containers: - name: ubuntu-16-04 image: ubuntu:16.04 imagePullPolicy: IfNotPresent command: [ "/bin/bash", "-c" ] args: - apt-get update; apt-get install iputils-ping -y; apt-get install net-tools; apt-get install curl -y; sleep infinity; --- apiVersion: apps/v1 kind: Deployment metadata: name: ubuntu-20-04 labels: app: ubuntu-20-04 namespace: dev-app1 spec: replicas: 2 selector: matchLabels: app: ubuntu-20-04 template: metadata: labels: app: ubuntu-20-04 spec: containers: - name: ubuntu-20-04 image: ubuntu:20.04 imagePullPolicy: IfNotPresent command: [ "/bin/bash", "-c" ] args: - apt-get update; apt-get install tcpdump -y; apt-get install telnet -y; apt-get install iputils-ping -y; apt-get install nmap -y; apt-get install net-tools; apt-get install netdiscover -y; apt-get install mysql-client -y; apt-get install curl -y; apt-get install dsniff -y; sleep infinity;