kind: Pod
apiVersion: v1
metadata:
name: testpod1
spec:
containers:
- name: c00
image: ubuntu
command: ["/bin/bash", "-c", "while true; do echo Hello-sagar; sleep 5 ; done"]
---
kind: Pod
apiVersion: v1
metadata:
name: testpod2
spec:
containers:
- name: c01
image: httpd
ports:
- containerPort: 80
2.
a. Pod to communication will happen via the Ips.
b. By default pod Ip will not accessible outside the node.