Skip to content

Commit ab25579

Browse files
author
Artem Roma
committed
Add examples of k8s pod and service specification
1 parent eef1512 commit ab25579

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

examples/pod.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: netchecker-server
5+
labels:
6+
app: netchecker-server
7+
spec:
8+
containers:
9+
- name: netchecker-server
10+
image: 127.0.0.1:31500/netchecker/server:latest
11+
imagePullPolicy: Always
12+
ports:
13+
- containerPort: 8081
14+
hostPort: 8081
15+
args:
16+
- "-v 5"
17+
- "-logtostderr"
18+
- "-kubeproxyinit"
19+
- "-endpoint 0.0.0.0:8081"

examples/svc.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
kind: "Service"
2+
apiVersion: "v1"
3+
metadata:
4+
name: "netchecker-service"
5+
spec:
6+
selector:
7+
app: "netchecker-server"
8+
ports:
9+
-
10+
protocol: "TCP"
11+
port: 8081
12+
targetPort: 8081
13+
nodePort: 31081
14+
type: "NodePort"

0 commit comments

Comments
 (0)