Skip to content

Commit 93a1d25

Browse files
AGC - WebSockets
1 parent 72e4b02 commit 93a1d25

File tree

1 file changed

+46
-0
lines changed
  • articles/application-gateway/for-containers/examples/websocket-scenario

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: test-infra
5+
---
6+
apiVersion: apps/v1
7+
kind: Deployment
8+
metadata:
9+
name: websocket-backend
10+
namespace: test-infra
11+
spec:
12+
replicas: 1
13+
selector:
14+
matchLabels:
15+
app: websocket-backend
16+
template:
17+
metadata:
18+
labels:
19+
app: websocket-backend
20+
spec:
21+
containers:
22+
- name: websocket-backend
23+
image: trafficcontrollertestimages.azurecr.io/images/websockets-test-backend:latest
24+
imagePullPolicy: Always
25+
ports:
26+
- name: http
27+
containerPort: 8080
28+
protocol: TCP
29+
resources:
30+
requests:
31+
cpu: 10m
32+
---
33+
apiVersion: v1
34+
kind: Service
35+
metadata:
36+
name: websocket-backend
37+
namespace: test-infra
38+
spec:
39+
type: ClusterIP
40+
ports:
41+
- port: 8080
42+
targetPort: http
43+
protocol: TCP
44+
name: http-back
45+
selector:
46+
app: websocket-backend

0 commit comments

Comments
 (0)