Created
March 29, 2023 01:19
-
-
Save dkeightley/4608ea3ee383cd0594bdb4c0dd9aa332 to your computer and use it in GitHub Desktop.
http echo deployment service and ingress for testing
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: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: http-echo | |
name: http-echo | |
namespace: default | |
spec: | |
selector: | |
matchLabels: | |
app: http-echo | |
template: | |
metadata: | |
labels: | |
app: http-echo | |
spec: | |
containers: | |
- name: http-echo | |
image: mendhak/http-https-echo | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: http-echo | |
namespace: default | |
spec: | |
ports: | |
- name: http-echo | |
port: 8080 | |
protocol: TCP | |
targetPort: 8080 | |
selector: | |
app: http-echo | |
type: ClusterIP | |
--- | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: http-echo | |
namespace: default | |
spec: | |
rules: | |
- host: test.com | |
http: | |
paths: | |
- backend: | |
service: | |
name: http-echo | |
port: | |
number: 8080 | |
path: / | |
pathType: Prefix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perform a request to get an echo of the request headers