Skip to content

Commit

Permalink
Update ingress nginx testing files
Browse files Browse the repository at this point in the history
  • Loading branch information
anveshmuppeda committed Mar 24, 2024
1 parent 1d591a9 commit 0875091
Show file tree
Hide file tree
Showing 9 changed files with 144 additions and 1 deletion.
Binary file added dockerfiles/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
paths:
- # path: /blogz
# The below one is used to manage static files
path: /blogz/(.*)
path: /blogs/(.*)
pathType: Prefix
backend:
service:
Expand Down
34 changes: 34 additions & 0 deletions nginx-ingress/testing/blogging-application/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: blog-app
labels:
app: blogging-application
spec:
replicas: 1
selector:
matchLabels:
app: blogging-application
template:
metadata:
labels:
app: blogging-application
spec:
containers:
- name: blog-container
image: anvesh35/blogging-application:v2.0.0
---
apiVersion: v1
kind: Service
metadata:
name: blogging-svc
labels:
app: blogging-application
spec:
type: ClusterIP
selector:
app: blogging-application
ports:
- protocol: TCP
port: 80
targetPort: 80
1 change: 1 addition & 0 deletions nginx-ingress/testing/dynamic/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Blogging Application
20 changes: 20 additions & 0 deletions nginx-ingress/testing/dynamic/blog-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: dynamic-app
labels:
app: dynamic-application
spec:
replicas: 1
selector:
matchLabels:
app: dynamic-application
template:
metadata:
labels:
app: dynamic-application
spec:
containers:
- name: blog-container
image: nginx
# image: nginx
26 changes: 26 additions & 0 deletions nginx-ingress/testing/dynamic/blog-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dynamic-ingress
labels:
app: dynamic-application
namespace: testing
annotations:
nginx.ingress.kubernetes.io/add-base-url: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/add-header: "Content-Type: text/plain"
#nginx.ingress.kubernetes.io/add-header: "Content-Type: text/plain, Content-Disposition: inline"
spec:
ingressClassName: nginx
rules:
- http:
paths:
- # path: /blogz
# The below one is used to manage static files
path: /dynamic
pathType: Prefix
backend:
service:
name: dynamic-svc
port:
number: 80
14 changes: 14 additions & 0 deletions nginx-ingress/testing/dynamic/blog-np-svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: dynamic-np-svc
labels:
app: dynamic-application
spec:
type: NodePort
selector:
app: dynamic-application
ports:
- protocol: TCP
port: 80
targetPort: 80
14 changes: 14 additions & 0 deletions nginx-ingress/testing/dynamic/blog-svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: dynamic-svc
labels:
app: dynamic-application
spec:
type: ClusterIP
selector:
app: dynamic-application
ports:
- protocol: TCP
port: 80
targetPort: 80
34 changes: 34 additions & 0 deletions nginx-ingress/testing/streaming-application/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: stream-app
labels:
app: streaming-application
spec:
replicas: 1
selector:
matchLabels:
app: streaming-application
template:
metadata:
labels:
app: streaming-application
spec:
containers:
- name: stream-container
image: anvesh35/streaming-application:v3.0.0
---
apiVersion: v1
kind: Service
metadata:
name: streaming-svc
labels:
app: streaming-application
spec:
type: ClusterIP
selector:
app: streaming-application
ports:
- protocol: TCP
port: 80
targetPort: 80

0 comments on commit 0875091

Please sign in to comment.