Skip to content

Instantly share code, notes, and snippets.

@hbagdi
Created August 6, 2019 17:10
Show Gist options
  • Save hbagdi/2eb67fb0c0bca276d246c25060911769 to your computer and use it in GitHub Desktop.
Save hbagdi/2eb67fb0c0bca276d246c25060911769 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: fallback-svc
spec:
replicas: 1
selector:
matchLabels:
app: fallback-svc
template:
metadata:
labels:
app: fallback-svc
spec:
containers:
- name: fallback-svc
image: hashicorp/http-echo
args:
- "-text"
- "This is not the path you are looking for. - Fallback service"
ports:
- containerPort: 5678
---
apiVersion: v1
kind: Service
metadata:
name: fallback-svc
labels:
app: fallback-svc
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 5678
protocol: TCP
name: http
selector:
app: fallback-svc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment