nice-portugal-52925
08/16/2019, 2:17 AMconst appService = new k8s.core.v1.Service("django-service", {
metadata: { labels: appDeployment.metadata.labels },
spec: {
type: "NodePort",
ports: [{ port: 80, targetPort: appPort }],
selector: appDeployment.spec.template.metadata.labels,
},
}, { provider: cluster.provider });
const appIngress = new k8s.extensions.v1beta1.Ingress("django-load-balancer", {
spec: {
backend: {
serviceName: appService.metadata.name
,
servicePort: 80,
}
}
})
gorgeous-egg-16927
08/16/2019, 3:41 PMnice-portugal-52925
08/18/2019, 2:24 AMError: Server Error
The server encountered a temporary error and could not complete your request.
Please try again in 30 seconds.
glamorous-printer-66548
08/19/2019, 11:53 AM/
GET. You can modify the endpoint by adding a readinessProbe, but you cannot deactivate the health check completely, even if you don’t specify a readinessProbe. This is one of the quirks of GKEs L7 LBs and the Ingress controller. More info can be found here: https://cloud.google.com/kubernetes-engine/docs/concepts/ingress#health_checks/
by running kubectl port-forward svc/<your_service> 8080
and then curl <http://localhost:8080> -v
spec: {
backend: {
serviceName: service.metadata.name,
servicePort: 8080
}
}
nice-portugal-52925
08/19/2019, 10:01 PM/
route returns a 200
😕. I tried the other spec as well no luck. I am able to deploy it just fine with just a LoadBalancer and no ingress, but im trying to set up https with cloudflare. if you have any other solutions they would be appreciated.glamorous-printer-66548
08/19/2019, 10:11 PMnice-portugal-52925
08/19/2019, 10:34 PMglamorous-printer-66548
08/19/2019, 11:27 PMnice-portugal-52925
08/19/2019, 11:37 PMError: Server Error
The server encountered a temporary error and could not complete your request.
Please try again in 30 seconds.
with the ingress http load balancerglamorous-printer-66548
08/20/2019, 12:18 AMnice-portugal-52925
08/20/2019, 12:52 AMglamorous-printer-66548
08/20/2019, 1:36 AMnice-portugal-52925
08/20/2019, 2:43 AMALLOWED_HOSTS
. Therefor returning a non 200 status failing the health checks 🤦♂️glamorous-printer-66548
08/20/2019, 11:41 AMnice-portugal-52925
08/20/2019, 9:13 PM