kubectl logging

Searching logs kubectl logs my-pod | grep search-expression https://www.containiq.com/post/kubectl-logs

March 1, 2023 · 9 words · Peter Dieleman

Ports, Websockets and K8s

Considerations when deploying app relying on web sockets on kubernetes. post TargetPorts, Ports & Nodeports These two concepts govern ingress at the Service & Pod level: port: port that corresponding Service is listening on targetPort: port to which traffic is directed inside the container These two concepts govern ingress at the Service & Cluster level: ClusterIP: This is the default type for service in Kubernetes; an address that can be used inside the cluster....

January 1, 2023 · 176 words · Peter Dieleman

Openshift Documentation

Issues with root https://number1.co.za/openshift-will-not-run-your-container-as-a-root-user/ https://stackoverflow.com/questions/57044509/openshift-use-nginx-official-image-instead-of-one-from-oc-registry https://stackoverflow.com/questions/38754592/what-is-the-correct-way-to-run-an-nginx-docker-container-in-openshift https://engineering.bitnami.com/articles/running-non-root-containers-on-openshift.html https://torstenwalter.de/openshift/nginx/2017/08/04/nginx-on-openshift.html https://developers.redhat.com/blog/2020/10/26/adapting-docker-and-kubernetes-containers-to-run-on-red-hat-openshift-container-platform https://developers.redhat.com/blog/2020/10/26/adapting-docker-and-kubernetes-containers-to-run-on-red-hat-openshift-container-platform#how_to_debug_issues https://stackoverflow.com/questions/42363105/permission-denied-mkdir-in-container-on-openshift Although OpenShift runs containers using an arbitrarily assigned user ID, the group ID must always be set to the root group (0). Therefore, the directories and files that the processes running in the image need to access should have their group ownership set to the root group. They also need to be read/writable by that group as recommended by the OpenShift Container Platform-specific guidelines....

February 22, 2022 · 82 words · Peter Dieleman