Docker Community Forums

Share and learn in the Docker community.

Kubernetes not displaying containers after create a POD / Deployment using regular/non-admin users


(Garciajr) #1

Steps to reproduce:

  • Logon as regular user (user has grant to default namespace already set)
  • Create a POD on default namespace
  • Check if POD is running fine, try to access the service to confirm.

Even with POD up and running, all containers for this POD are not showing up for the same user who created the POD, using UCP, API, Cerficates bundle (docker ps). No access to containers either to exec, check logs, etc.

Can some please tell me if I am missing something when creating a new POD?

deployment yaml file
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: tomcat
namespace: default
spec:
replicas: 1
template:
metadata:
labels:
app: tomcat
spec:
containers:
- name: tomcat
image: tomcat:8.5.32-slim
resources:
limits:
cpu: 0.4
memory: 512Mi
requests:
cpu: 0.3
memory: 256Mi
ports:
- containerPort: 8080
env:
- name: JAVA_OPTS
value: “-Xmx256M”