--- apiVersion: apps/v1 kind: Deployment metadata: name: nginx-d labels: context: ansible spec: replicas: 1 selector: matchLabels: context: ansible template: metadata: labels: context: ansible spec: containers: - name: nginx image: nginx ports: - containerPort: 80 --- apiVersion: apps/v1 kind: Deployment metadata: name: openjdk-d labels: context: ansible spec: replicas: 2 selector: matchLabels: context: ansible template: metadata: labels: context: ansible spec: containers: - name: openjdk image: openjdk:17 command: - /bin/sh - -c - while true;do date;sleep 5; done --- apiVersion: apps/v1 kind: Deployment metadata: name: alpine-d labels: context: ansible spec: replicas: 3 selector: matchLabels: context: ansible template: metadata: labels: context: ansible spec: containers: - name: alpine image: alpine command: - /bin/sh - -c - while true;do date;sleep 5; done