This is a Kubernetes manifest that creates a Job. The Job creates a pod running an Ubuntu container, and the generates a list of test emails with UUIDS. The pod will run for 60 seconds and then terminate.
The original commands are from the DigitalOcean Tutorial How To Generate Universally Unique Identifiers (UUIDs) with uuidgen.
Here's the kind of output you should see when you look at the logs for the pod:
Output
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
Clone this repository and change into the daemonset directory
git clone https://github.com/do-community/example-k8s-workloads/ && \
cd example-k8s-workloads/job
Apply the Job manifest
kubectl apply -f job.yaml
To see the message, first find all the nodename pods
kubectl get pods
You will see one po that start with the prefix uuidgen-
followed by a hash.
To see the logs for a pod, copy the pod name and run
kubectl logs <pod_name>
You should see the message above with the node name that your pod is running on.
kubectl delete job uuidgen