This expands on the steps described here by using a k8 secret to store the workspace id and key.
kubectl create secret generic oms-agent-secret --from-literal=WSID=<WorkspaceID> --from-literal=KEY=<WorkspaceKey>
Note two points in the file k8-demo-enable-oms.yml
Deploy the agent with the following command:
kubectl create -f k8-demo-enable-oms.yml
Within a few minutes you should see metrics and logs for containers deployed in the k8 cluster.