Tracing connectivity

In this subsection, we will create a demo project hosting a single httpd pod in order to see first-hand how the overlay network is constructed in OpenShift.

  1. First, let's create the project:
# oc new-project demo...
  1. Then, create a pod running Apache web server in the project:
# cat httpd-pod.yml apiVersion: v1kind: Podmetadata:  name: httpd  labels:    role: webspec:  containers:  - name: httpd    image: manageiq/httpd    resources:      requests:        cpu: 400m        memory: 128Mi# oc create -f httpd-pod.ymlpod "httpd" created
  1. We will need the IP address allocated to the pod, as well as the address of the node it was scheduled to:
# oc describe po/httpd | grep '\(Node\|IP\):'Node: 172.24.0.13/172.24.0.13IP: 10.129.0.20
  1. Another step is to get ...

Get Learn OpenShift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.