
10.Set Up Time Check Pod in Kubernetes
Lab Information The Nautilus DevOps team needs a time check pod created in a specific Kubernetes namespace for logging purposes. Initially, it's for testing, but it may be integrated into an existing cluster later. Here's what's required: Create a pod called time-check in the devops namespace. The pod should contain a container named time-check, utilizing the busybox image with the latest tag (specify as busybox:latest). Create a config map named time-config with the data TIME_FREQ=3 in the same namespace. Configure the time-check container to execute the command: while true; do date; sleep $TIME_FREQ;done. Ensure the result is written /opt/dba/time/time-check.log. Also, add an environmental variable TIME_FREQ in the container, fetching its value from the config map TIME_FREQ key. Create a volume log-volume and mount it at /opt/dba/time within the container. Note: The kubectl utility on jump_host is configured to operate with the Kubernetes cluster. Lab Solutions Step 1: Create the dev
Continue reading on Dev.to
Opens in a new tab




