Echo Pod Name is a lightweight Docker image, to display the k8s pod name and node name.
5.2K
The source code for this image can be found in the kubernetes repository.
The Dockerfile is located in the dockerfiles/echo-pod directory.
The image is built using a multi-stage build process, ensuring a minimal footprint and secure.
Echo Pod Name is a lightweight Docker image based on Nginx and Alpine, designed to display the Kubernetes pod name and node name dynamically on a web page. It is a simple tool for developers and operators to verify their Kubernetes setup and to provide quick insights into pod information.
docker pull anvesh35/echopod:latest
docker run -d -p 80:80 -e NODE_NAME="your-node-name" anvesh35/echo-pod-name:latest
Open your web browser and navigate to http://:80 to see the pod information displayed.
NODE_NAME: Specify the name of the node where the pod is running. If not provided, the default value will be "Unknown Node".
POD_NAME: The Pod Name is automatically determined by the hostname of the container.
Sample Kubernetes YAML Configuration.
Here’s a sample Kubernetes manifest to deploy the Echo Pod Name image:
apiVersion: v1
kind: Pod
metadata:
name: echo-pod
labels:
app: echo-pod
spec:
containers:
- name: echo-pod-container
image: anvesh35/echo-pod-name:latest
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: echo-svc
spec:
type: NodePort
selector:
app: echo-pod
ports:
- protocol: TCP
port: 80
targetPort: 80
Content type
Image
Digest
sha256:c90f7eea4…
Size
21.5 MB
Last updated
about 1 year ago
docker pull anvesh35/echo-pod-name