Created
February 17, 2024 03:26
-
-
Save sijomon/bd1ae54fcc15296799e919295d96daeb to your computer and use it in GitHub Desktop.
This file contains 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
#ingress.yaml | |
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: demoapp | |
annotations: | |
appgw.ingress.kubernetes.io/backend-path-prefix: / | |
kubectl.kubernetes.io/last-applied-configuration: | | |
{"apiVersion":"networking.k8s.io/v1","kind":"Ingress","metadata":{"annotations":{},"name":"demoapp","namespace":"default"},"spec":{"ingressClassName":"azure-application-gateway","rules":[{"http":{"paths":[{"backend":{"service":{"name":"demo-one","port":{"number":80}}},"path":"/","pathType":"Exact"}]}}]}} | |
spec: | |
ingressClassName: azure-application-gateway | |
rules: | |
- http: | |
paths: | |
- backend: | |
service: | |
name: demoapp | |
port: | |
number: 80 | |
path: /test | |
pathType: Exact | |
- backend: | |
service: | |
name: demoapp | |
port: | |
number: 80 | |
path: /nginx | |
pathType: Exact |
This file contains 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
#demo-one.yaml | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: demoapp | |
labels: | |
app: demoapp | |
spec: | |
containers: | |
- image: "mcr.microsoft.com/dotnet/samples:aspnetapp" | |
name: aspnetapp-image | |
ports: | |
- containerPort: 8080 | |
protocol: TCP | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: demoapp | |
spec: | |
selector: | |
app: demoapp | |
ports: | |
- protocol: TCP | |
port: 80 | |
targetPort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment