← Back to Tools

Text & Code Diff Viewer

Compare two texts, configuration files, or code snippets side-by-side or in unified view.

+9 added-7 deleted
Original (Before)26 lines
Modified (After)28 lines

Comparison Output

1
-
// Kubernetes Deployment v1
1
+
// Kubernetes Deployment v2
2
2
apiVersion: apps/v1
3
3
kind: Deployment
4
4
metadata:
5
-
name: web-app
5
+
name: web-app-prod
6
6
labels:
7
7
app: web
8
+
env: production
8
9
spec:
9
-
replicas: 3
10
+
replicas: 5
10
11
selector:
11
12
matchLabels:
12
13
app: web
13
14
template:
14
15
metadata:
15
16
labels:
16
17
app: web
18
+
env: production
17
19
spec:
18
20
containers:
19
21
- name: server
20
-
image: nginx:1.24-alpine
22
+
image: nginx:1.25-alpine
21
23
ports:
22
-
- containerPort: 80
24
+
- containerPort: 8080
23
25
resources:
24
26
limits:
25
-
memory: "256Mi"
26
-
cpu: "250m"
27
+
memory: "512Mi"
28
+
cpu: "500m"