我刚刚将Minikube 1.7.3升级到1.10.1,并希望从--vm-driver none
切换到-vm-driver docker
一切正常,我的应用程序已部署,没有问题,但我的应用程序均不可用,我得到了:
Connection refused
尝试从浏览器访问我的API时
我将Traefik
用作本地入口。
对于1.10.1,当我继续使用--vm-driver none
时,我没有问题。
当我恢复为--vm-driver none
时,我无法给您确切的日志,但是我可以随时间做。我需要什么信息来调试此问题?
编辑:
kubectl get ingress -n influx
measures-ingress <none> measures.local 80 4m12s
kubectl get svc -n influx
measures-api-local ClusterIP 10.97.62.32 <none> 44444/TCP 4m13s
kubectl get po -n influx
influx measures-api-local-7fdbdf955-g8k8f 1/1跑步1 17m
在我的配置中,我有:
入口:
kind: Ingress
apiVersion: extensions/v1beta1
metadata:
name: measures-ingress
namespace: influx
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host: measures.local
http:
paths:
- backend:
serviceName: measures-api-local
servicePort: 44444
服务:
apiVersion: v1
kind: Service
metadata:
labels:
app: measures-api-local
name: measures-api-local
namespace: influx
spec:
ports:
- name: "44444"
port: 44444
targetPort: 44444
selector:
app: measures-api-local
type: ClusterIP
部署:
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
reloader.stakater.com/auto: "true"
labels:
app: measures-api-local
name: measures-api-local
namespace: influx
spec:
selector:
matchLabels:
app: measures-api-local
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: measures-api-local
spec:
terminationGracePeriodSeconds: 0
containers:
- image: measures_api:local
name: measures-api-local
envFrom:
- secretRef:
name: measures-env
restartPolicy: Always
更新:当我使用minikube start
时也会发生这种情况,并且对于grafana或pgadmin等开源应用程序我也有问题