-
-
Save DeclanPaulKeane/cc47ae43b9cd4c2f7e48f4fbf21bcd59 to your computer and use it in GitHub Desktop.
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: Namespace | |
| metadata: | |
| name: testing | |
| labels: | |
| name: testing | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| labels: | |
| app: echo | |
| name: echo | |
| namespace: testing | |
| spec: | |
| ports: | |
| - port: 8080 | |
| name: high | |
| protocol: TCP | |
| targetPort: 8080 | |
| - port: 80 | |
| name: low | |
| protocol: TCP | |
| targetPort: 8080 | |
| selector: | |
| app: echo | |
| --- | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app: echo | |
| name: echo | |
| namespace: testing | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: echo | |
| strategy: {} | |
| template: | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| app: echo | |
| spec: | |
| containers: | |
| - image: gcr.io/kubernetes-e2e-test-images/echoserver:2.2 | |
| name: echo | |
| ports: | |
| - containerPort: 8080 | |
| env: | |
| - name: NODE_NAME | |
| valueFrom: | |
| fieldRef: | |
| fieldPath: spec.nodeName | |
| - name: POD_NAME | |
| valueFrom: | |
| fieldRef: | |
| fieldPath: metadata.name | |
| - name: POD_NAMESPACE | |
| valueFrom: | |
| fieldRef: | |
| fieldPath: metadata.namespace | |
| - name: POD_IP | |
| valueFrom: | |
| fieldRef: | |
| fieldPath: status.podIP | |
| resources: {} | |
| --- | |
| apiVersion: networking.k8s.io/v1 | |
| kind: Ingress | |
| metadata: | |
| name: accounts-ing | |
| namespace: testing | |
| spec: | |
| ingressClassName: kong | |
| rules: | |
| - http: | |
| paths: | |
| - path: /accounts | |
| pathType: ImplementationSpecific | |
| backend: | |
| service: | |
| name: echo | |
| port: | |
| number: 80 | |
| --- | |
| apiVersion: networking.k8s.io/v1 | |
| kind: Ingress | |
| metadata: | |
| name: posts-ing | |
| namespace: testing | |
| spec: | |
| ingressClassName: kong | |
| rules: | |
| - http: | |
| paths: | |
| - path: /posts | |
| pathType: ImplementationSpecific | |
| backend: | |
| service: | |
| name: echo | |
| port: | |
| number: 80 | |
| --- | |
| apiVersion: networking.k8s.io/v1 | |
| kind: Ingress | |
| metadata: | |
| name: comments-ing | |
| namespace: testing | |
| spec: | |
| ingressClassName: kong | |
| rules: | |
| - http: | |
| paths: | |
| - path: /comments | |
| pathType: ImplementationSpecific | |
| backend: | |
| service: | |
| name: echo | |
| port: | |
| number: 80 | |
| --- | |
| apiVersion: networking.k8s.io/v1 | |
| kind: Ingress | |
| metadata: | |
| name: users-ing | |
| namespace: testing | |
| spec: | |
| ingressClassName: kong | |
| rules: | |
| - http: | |
| paths: | |
| - path: /users | |
| pathType: ImplementationSpecific | |
| backend: | |
| service: | |
| name: echo | |
| port: | |
| number: 80 | |
| --- | |
| apiVersion: networking.k8s.io/v1 | |
| kind: Ingress | |
| metadata: | |
| name: categories-ing | |
| namespace: testing | |
| spec: | |
| ingressClassName: kong | |
| rules: | |
| - http: | |
| paths: | |
| - path: /categories | |
| pathType: ImplementationSpecific | |
| backend: | |
| service: | |
| name: echo | |
| port: | |
| number: 80 | |
| --- | |
| apiVersion: networking.k8s.io/v1 | |
| kind: Ingress | |
| metadata: | |
| name: tags-ing | |
| namespace: testing | |
| spec: | |
| ingressClassName: kong | |
| rules: | |
| - http: | |
| paths: | |
| - path: /tags | |
| pathType: ImplementationSpecific | |
| backend: | |
| service: | |
| name: echo | |
| port: | |
| number: 80 | |
| --- | |
| apiVersion: networking.k8s.io/v1 | |
| kind: Ingress | |
| metadata: | |
| name: search-ing | |
| namespace: testing | |
| spec: | |
| ingressClassName: kong | |
| rules: | |
| - http: | |
| paths: | |
| - path: /search | |
| pathType: ImplementationSpecific | |
| backend: | |
| service: | |
| name: echo | |
| port: | |
| number: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment