Skip to content

Instantly share code, notes, and snippets.

@Dakuan
Created December 21, 2017 15:17
Show Gist options
  • Save Dakuan/d524b7175dc1e1af08b908bd9287a846 to your computer and use it in GitHub Desktop.
Save Dakuan/d524b7175dc1e1af08b908bd9287a846 to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: Service
metadata:
labels:
run: invoices-svc
name: invoices-svc
namespace: default
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v0
kind: Mapping
name: fws-invoices_mapping
prefix: /invoices/
rewrite: /api/invoices/
service: invoices-svc
spec:
ports:
- port: 80
protocol: TCP
targetPort: 8080
selector:
run: invoices-svc
sessionAffinity: None
type: ClusterIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment