aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/ipfs/ipfs-deployment.yaml
blob: 12f50a103074c1a4d8070cccc2d9222870f5a977 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
apiVersion: apps/v1
kind: Deployment
metadata:
  name: ipfs
  labels:
    app: ipfs
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ipfs
  template:
    metadata:
      labels:
        app: ipfs
    spec:
      containers:
      - name: ipfs
        image: linuxserver/ipfs:2.13.0
        ports:
        - containerPort: 80
        - containerPort: 443
        - containerPort: 4001
        - containerPort: 5001
        - containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
  name: ipfs-service
spec:
  selector:
    app: ipfs
  type: NodePort
  ports:
    - protocol: TCP
      port: 4001
      targetPort: 4001
      nodePort: 30401
      name: "ipfs-tcp-4001"
    - protocol: UDP
      port: 4001
      targetPort: 4001
      nodePort: 30401
      name: "ipfs-udp-4001"
    - protocol: TCP
      port: 5001
      targetPort: 5001
      nodePort: 30402
      name: "ipfs-tcp-5001"
    - protocol: TCP
      port: 8080
      targetPort: 8080
      nodePort: 30403
      name: "ipfs-tcp-8080"
    - protocol: TCP
      port: 80
      targetPort: 80
      nodePort: 30404
      name: "ipfs-tcp-80"
    - protocol: TCP
      port: 443
      targetPort: 443
      nodePort: 30405
      name: "ipfs-tcp-443"