Last active
November 21, 2022 11:26
-
-
Save miticojo/b065c6b210a1dc4e067718dbdf6a8f25 to your computer and use it in GitHub Desktop.
quick istio httpbin test
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: v1 | |
kind: ServiceAccount | |
metadata: | |
name: httpbin | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: httpbin | |
labels: | |
app: httpbin | |
service: httpbin | |
spec: | |
ports: | |
- name: http | |
port: 8000 | |
targetPort: 80 | |
selector: | |
app: httpbin | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: httpbin | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: httpbin | |
version: v1 | |
template: | |
metadata: | |
labels: | |
app: httpbin | |
version: v1 | |
spec: | |
serviceAccountName: httpbin | |
containers: | |
- image: docker.io/kennethreitz/httpbin | |
imagePullPolicy: IfNotPresent | |
name: httpbin | |
ports: | |
- containerPort: 80 | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: Gateway | |
metadata: | |
name: httpbin-gateway | |
spec: | |
selector: | |
istio: ingressgateway # use Istio default gateway implementation | |
servers: | |
- port: | |
number: 80 | |
name: http | |
protocol: HTTP | |
hosts: | |
- "*" | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: httpbin | |
spec: | |
hosts: | |
- "*" | |
gateways: | |
- httpbin-gateway | |
http: | |
- match: | |
route: | |
- destination: | |
port: | |
number: 8000 | |
host: httpbin | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment