<p>I'm trying to replace nginx as proxy with ambassador which is the implementation of the envoyproxy on kubernetes. I did exactly as shown in  <a href="http://www.envoyproxy.io/docs/envoy/latest/start/distro/ambassador" rel="nofollow noreferrer">here</a></p>

<p>But nothing seems to really works, is there a way someone can help with the appropriated configuration ?</p>

Gilles Essoki
<p><strong>I have a solution</strong>.</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: deploy-lab
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: lab
    spec:
      containers:
      - name: ipython-container
        image: &lt;your image&gt;
        imagePullPolicy: "Always"
        ports:
        - containerPort: 8888
        env &lt;if you have one&gt;:
         - 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.&lt;your namespace&gt;.svc.cluster.local:8889
      use_websocket: true
      prefix: /
      rewrite: /
      host_rewrite: http://jupyter.&lt;your namespace&gt;.svc.cluster.local
spec:
  type: ClusterIP
  selector:
    app: lab
  ports:
  - name: jupyter
    protocol: TCP
    port: 8889
    targetPort: 8888
</code></pre>
