Last active
November 4, 2022 15:53
-
-
Save samlabs821/d456ebeb43d3dfc0628ad254f25a77bf to your computer and use it in GitHub Desktop.
manifests.yaml
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: getambassador.io/v3alpha1 | |
| kind: Listener | |
| metadata: | |
| name: http-listener | |
| spec: | |
| port: 8080 # int32, port number on which to listen | |
| protocol: HTTP # HTTP, HTTPS, HTTPPROXY, HTTPSPROXY, TCP | |
| securityModel: INSECURE # XFP (for X-Forwarded-Proto), SECURE, INSECURE | |
| hostBinding: | |
| namespace: | |
| from: SELF # SELF, ALL | |
| --- | |
| apiVersion: getambassador.io/v3alpha1 | |
| kind: Mapping | |
| metadata: | |
| name: httpbin-mapping | |
| spec: | |
| prefix: /httpbin/ | |
| service: http://httpbin.org | |
| --- | |
| apiVersion: getambassador.io/v3alpha1 | |
| kind: Mapping | |
| metadata: | |
| name: podinfo-env | |
| spec: | |
| prefix: /env | |
| rewrite: /env | |
| service: podinfo.default:9898 | |
| resolver: endpoint | |
| load_balancer: | |
| policy: least_request | |
| hostname: "podinfo.kz" | |
| --- | |
| apiVersion: getambassador.io/v3alpha1 | |
| kind: Mapping | |
| metadata: | |
| name: podinfo-delay | |
| spec: | |
| prefix: /delay | |
| rewrite: /delay | |
| service: podinfo.default:9898 | |
| resolver: endpoint | |
| load_balancer: | |
| policy: least_request | |
| hostname: "podinfo.kz" | |
| timeout_ms: 10000 | |
| idle_timeout_ms: 10000 | |
| --- | |
| apiVersion: getambassador.io/v3alpha1 | |
| kind: KubernetesEndpointResolver | |
| metadata: | |
| name: endpoint | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| annotations: | |
| a8r.io/bugs: https://github.com/datawire/ambassador/issues | |
| labels: | |
| app.kubernetes.io/component: ambassador-service | |
| app.kubernetes.io/instance: ambassador | |
| name: ambassador | |
| namespace: default | |
| spec: | |
| clusterIP: 10.233.16.213 | |
| clusterIPs: | |
| - 10.233.16.213 | |
| externalTrafficPolicy: Cluster | |
| internalTrafficPolicy: Cluster | |
| ipFamilies: | |
| - IPv4 | |
| ipFamilyPolicy: SingleStack | |
| ports: | |
| - name: http | |
| nodePort: 30080 | |
| port: 8080 | |
| protocol: TCP | |
| targetPort: 8080 | |
| selector: | |
| app.kubernetes.io/instance: ambassador | |
| app.kubernetes.io/name: ambassador | |
| profile: main | |
| sessionAffinity: None | |
| type: NodePort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment