Skip to content

Instantly share code, notes, and snippets.

@tcdowney
Created March 20, 2020 16:00
Show Gist options
  • Save tcdowney/2d3fe9eafb325aae4116c7b928c5d71f to your computer and use it in GitHub Desktop.
Save tcdowney/2d3fe9eafb325aae4116c7b928c5d71f to your computer and use it in GitHub Desktop.
cf-for-k8s istio virtualservice example
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
annotations:
cloudfoundry.org/fqdn: whoami.tim-2020-03-18.routing.lol
metacontroller.k8s.io/last-applied-configuration: '{"apiVersion":"networking.istio.io/v1alpha3","kind":"VirtualService","metadata":{"annotations":{"cloudfoundry.org/fqdn":"whoami.tim-2020-03-18.routing.lol"},"creationTimestamp":null,"labels":{"cloudfoundry.org/route-bulk-sync":"true"},"name":"vs-f48b53b677be4b3ddd70beba027fb405fb0a45be6da7ff17bb7e3afdc1942cf3"},"spec":{"gateways":["istio-ingress"],"hosts":["whoami.tim-2020-03-18.routing.lol"],"http":[{"route":[{"destination":{"host":"s-e7017323-678b-454b-b099-9e196b33bb02"},"headers":{"request":{"set":{"CF-App-Id":"46f34772-4c8f-4a09-b18e-75505681265c","CF-App-Process-Type":"web","CF-Organization-Id":"631fec7d-47cc-4e82-8df1-add1c314d94f","CF-Space-Id":"a71aaf82-4f4a-4967-a0a6-471c44484186"}},"response":{}}}]}]}}'
creationTimestamp: "2020-03-18T22:35:21Z"
generation: 1
labels:
cloudfoundry.org/route-bulk-sync: "true"
name: vs-f48b53b677be4b3ddd70beba027fb405fb0a45be6da7ff17bb7e3afdc1942cf3
namespace: cf-workloads
ownerReferences:
- apiVersion: apps.cloudfoundry.org/v1alpha1
blockOwnerDeletion: true
controller: true
kind: RouteBulkSync
name: route-bulk-sync
uid: 1bb37eee-6967-11ea-ad6e-42010a8a011a
resourceVersion: "5441"
selfLink: /apis/networking.istio.io/v1alpha3/namespaces/cf-workloads/virtualservices/vs-f48b53b677be4b3ddd70beba027fb405fb0a45be6da7ff17bb7e3afdc1942cf3
uid: c08620b6-6968-11ea-ad6e-42010a8a011a
spec:
gateways:
- istio-ingress
hosts:
- whoami.tim-2020-03-18.routing.lol
http:
- route:
- destination:
host: s-e7017323-678b-454b-b099-9e196b33bb02
headers:
request:
set:
CF-App-Id: 46f34772-4c8f-4a09-b18e-75505681265c
CF-App-Process-Type: web
CF-Organization-Id: 631fec7d-47cc-4e82-8df1-add1c314d94f
CF-Space-Id: a71aaf82-4f4a-4967-a0a6-471c44484186
response: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment