将Talisman用于Flask / Python时,活动性/就绪性探针失败

时间:2020-05-26 03:44:05

标签: python flask kubernetes https google-kubernetes-engine

我正在使用已部署到Google Kubernetes Engine中的Flask应用。部署的应用程序使用Waitress服务于Flask应用程序。我想确保所有连接都通过https。我已部署的应用程序当前允许使用http和/或https,但是我想强制使用https。为此,我尝试使用Talisman

livenessProbe:
  httpGet:
    port: 8080
    path: /health
  initialDelaySeconds: 60
  timeoutSeconds: 1
readinessProbe:
  httpGet:
    port: 8080
    path: /health
  initialDelaySeconds: 60
  timeoutSeconds: 1

但是,当我使用Talisman部署版本时,探测失败,并且无法访问Web应用。

scheme: HTTPS

我尝试将httpGet添加到RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php [L,QSA] ,但是探测仍然失败。

我要去哪里错了?

0 个答案:

没有答案