Created
August 6, 2019 17:10
-
-
Save hbagdi/2eb67fb0c0bca276d246c25060911769 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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