Created
September 24, 2019 06:01
-
-
Save leoh0/35c2033b3302a32e271c98768e2d9cc6 to your computer and use it in GitHub Desktop.
default backend to legacy service
This file contains hidden or 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: networking.k8s.io/v1beta1 | |
kind: Ingress | |
metadata: | |
name: default-backend-to-legacy-service | |
spec: | |
backend: | |
serviceName: legacy-service | |
servicePort: 80 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: legacy-service | |
spec: | |
ports: | |
- protocol: TCP | |
port: 80 | |
targetPort: 80 | |
--- | |
apiVersion: v1 | |
kind: Endpoints | |
metadata: | |
name: legacy-service | |
subsets: | |
- addresses: | |
- ip: 192.168.0.x | |
ports: | |
- port: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment