Skip to content

[Bug]: Failed to get pod: resource name may not be empty #7636

Open
@akhilgentoo

Description

@akhilgentoo

Version

edge

What Kubernetes platforms are you running on?

Kind

Steps to reproduce

Tried to deploy a nginx ingress in my local system podman,

getting below error

NGINX Ingress Controller Version=4.0.1 Commit=dca89f4e47dd9972f0f0becda8865d5b09021404 Date=2025-02-07T11:03:22Z DirtyState=false Arch=linux/amd64 Go=go1.23.5
I20250411 20:14:24.745856 1 flags.go:287] Starting with flags: []
I20250411 20:14:24.748548 1 main.go:411] Kubernetes version: 1.30.0
F20250411 20:14:24.748589 1 main.go:99] Failed to get pod: resource name may not be empty

Below is my manifest file

apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-ingress
namespace: k8learningsns
spec:
replicas: 1
selector:
matchLabels:
app: nginx-ingress
template:
metadata:
labels:
app: nginx-ingress
app.kubernetes.io/name: nginx-ingress
spec:
serviceAccountName: nginx-ingress
automountServiceAccountToken: true
securityContext:
seccompProfile:
type: RuntimeDefault
containers:
- image: nginx/nginx-ingress:4.0.1
imagePullPolicy: IfNotPresent
name: nginx-ingress
ports:
- name: http
containerPort: 80
- name: https
containerPort: 443
- name: readiness-port
containerPort: 8081
- name: prometheus
containerPort: 9113
readinessProbe:
httpGet:
path: /nginx-ready
port: readiness-port
periodSeconds: 1
resources:
requests:
cpu: "100m"
memory: "128Mi"
securityContext:
allowPrivilegeEscalation: false
runAsUser: 101 # nginx
runAsNonRoot: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue reporting a potential bugneeds triageAn issue that needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions