我正试图用大使取代nginx作为代理,这是在kubernetes上实现的envoyproxy。我做的和这里中显示的完全一样
但是似乎没有什么是真正有效的,是否有人可以帮助进行适当的配置?
发布于 2018-06-27 10:11:59
,我有一个解决方案,。
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: deploy-lab
spec:
replicas: 1
template:
metadata:
labels:
app: lab
spec:
containers:
- name: ipython-container
image: <your image>
imagePullPolicy: "Always"
ports:
- containerPort: 8888
env <if you have one>:
- name: BASEURL
value: jupyter
- name: PASSWORD
value: jupyter
---
kind: Service
apiVersion: v1
metadata:
labels:
app: lab
name: jupyter
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v0
kind: Mapping
name: jupyter_mapping
service: http://jupyter.<your namespace>.svc.cluster.local:8889
use_websocket: true
prefix: /
rewrite: /
host_rewrite: http://jupyter.<your namespace>.svc.cluster.local
spec:
type: ClusterIP
selector:
app: lab
ports:
- name: jupyter
protocol: TCP
port: 8889
targetPort: 8888https://stackoverflow.com/questions/50897335
复制相似问题