J'ai du mal configurer le service d'entréeConfiguration d'équilibrage de charge sur GCP avec entrée pour https
Voici comment je configure Kubernetes:
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: web-spa-development-deployment
spec:
template:
metadata:
labels:
app: web-spa-development-291
spec:
containers:
- name: web-spa-development-291
image: web-spa-development:292
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: web-spa-development-service
spec:
type: NodePort
selector:
app: web-spa-development-291
ports:
- port: 80
targetPort: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: development-ingress
annotations:
kubernetes.io/ingress.global-static-ip-name: staging
spec:
tls:
- hosts:
- dev-app.example.com
secretName: wildcard-cert
rules:
- host: dev-app.example.com
http:
paths:
- backend:
serviceName: web-spa-development-service
servicePort: 80
path: /*
- backend:
serviceName: web-spa-development-service
servicePort: 80
path:/
---
Et dans l'image elle-même - un serveur nodejs, au service sur le port 80
Lorsque l'entrée est opérationnelle, l'accès à l'application Web avec http/https renvoie l'index.html dans la réponse. Cependant, il ne retourne aucun des assauts statiques - .js, .css, .html.
Quel pourrait être le problème?