https://pulumi.com logo
#kubernetes
Title
# kubernetes
e

echoing-fall-59017

12/20/2023, 8:10 AM
did anyone see this issue before?
Copy code
kubernetes:core/v1:Service (ingress_nginx_controller):
  error: Preview failed: 2 errors occurred:
   	* Resource 'ingress-nginx-controller' was created but failed to initialize
   	* Service does not target any Pods. Selected Pods may not be ready, or field '.spec.selector' may not match labels on any Pods
c

curved-morning-41391

12/20/2023, 5:20 PM
it means the downstream service either isn't defined correctly or the pods aren't in a ready state
e

echoing-fall-59017

12/24/2023, 8:06 AM
The thing is, this service and pods are working properly, and this issue only occurs when
pulumi preview
runs in
Github actions
c

curved-morning-41391

12/24/2023, 5:42 PM
what does the ingress object say when you describe it?
e

echoing-fall-59017

12/25/2023, 6:39 AM
This is the service object (it doesn't create an ingress)
Copy code
Name:                     ingress-nginx-controller
Namespace:                ingress-nginx
Labels:                   <http://app.kubernetes.io/component=controller|app.kubernetes.io/component=controller>
                          <http://app.kubernetes.io/instance=ingress-nginx|app.kubernetes.io/instance=ingress-nginx>
                          <http://app.kubernetes.io/managed-by=Helm|app.kubernetes.io/managed-by=Helm>
                          <http://app.kubernetes.io/name=ingress-nginx|app.kubernetes.io/name=ingress-nginx>
                          <http://app.kubernetes.io/part-of=ingress-nginx|app.kubernetes.io/part-of=ingress-nginx>
                          <http://app.kubernetes.io/version=1.9.4|app.kubernetes.io/version=1.9.4>
                          <http://helm.sh/chart=ingress-nginx-4.8.3|helm.sh/chart=ingress-nginx-4.8.3>
Annotations:              <http://field.cattle.io/publicEndpoints|field.cattle.io/publicEndpoints>:
                            [{"addresses":["XX.XX.XX.XX"],"port":80,"protocol":"TCP","serviceName":"ingress-nginx:ingress-nginx-controller","allNodes":false},{"addr...
                          <http://meta.helm.sh/release-name|meta.helm.sh/release-name>: ingress-nginx
                          <http://meta.helm.sh/release-namespace|meta.helm.sh/release-namespace>: ingress-nginx
                          <http://pulumi.com/skipAwait|pulumi.com/skipAwait>: true
Selector:                 <http://app.kubernetes.io/component=controller,app.kubernetes.io/instance=ingress-nginx,app.kubernetes.io/name=ingress-nginx|app.kubernetes.io/component=controller,app.kubernetes.io/instance=ingress-nginx,app.kubernetes.io/name=ingress-nginx>
Type:                     LoadBalancer
IP Family Policy:         SingleStack
IP Families:              IPv4
IP:                       XX.XX.XX.XX
IPs:                      XX.XX.XX.XX
LoadBalancer Ingress:     XX.XX.XX.XX
Port:                     http  80/TCP
TargetPort:               http/TCP
NodePort:                 http  31908/TCP
Endpoints:                XX.XX.XX.XX:80
Port:                     https  443/TCP
TargetPort:               https/TCP
NodePort:                 https  30402/TCP
Endpoints:                XX.XX.XX.XX:443
Session Affinity:         None
External Traffic Policy:  Cluster
Events:                   <none>