Skip to content

Instantly share code, notes, and snippets.

@kelseyevans
Created January 3, 2018 19:42
Show Gist options
  • Save kelseyevans/a8b50fd12f69bbaedf27bcf9cfdb34d8 to your computer and use it in GitHub Desktop.
Save kelseyevans/a8b50fd12f69bbaedf27bcf9cfdb34d8 to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: Service
metadata:
name: qotm
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v0
kind: Mapping
name: qotm_mapping
prefix: /qotm/
service: qotm
spec:
type: ClusterIP
selector:
app: qotm
ports:
- port: 80
name: http-qotm
targetPort: http-api
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: qotm
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: qotm
spec:
containers:
- name: qotm
image: datawire/qotm:1.1
ports:
- name: http-api
containerPort: 5000
resources:
limits:
cpu: "0.1"
memory: 100Mi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment