Skip to content

Instantly share code, notes, and snippets.

@relyt0925
Last active September 24, 2022 03:38
Show Gist options
  • Save relyt0925/db0d27f72771eee4e3bf89e6a06f99b2 to your computer and use it in GitHub Desktop.
Save relyt0925/db0d27f72771eee4e3bf89e6a06f99b2 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Namespace
metadata:
name: tyler-vm
---
apiVersion: v1
kind: Service
metadata:
name: app-1
namespace: tyler-vm
spec:
clusterIP: None
ports:
- name: http
port: 8000
protocol: TCP
targetPort: 8000
---
apiVersion: v1
kind: Endpoints
metadata:
# the name here should match the name of the Service
name: app-1
namespace: tyler-vm
subsets:
- addresses:
- ip: 10.240.64.8
ports:
- name: http
port: 8000
protocol: TCP
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: app-1
namespace: tyler-vm
spec:
host: app-1-tyler-vm.tyler-loc-useast-d-1-80d128fecd199542426020c17e5e9430-0000.us-east.containers.appdomain.cloud
port:
targetPort: http
tls:
termination: edge
to:
kind: Service
name: app-1
weight: 100
wildcardPolicy: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment