github.com/annchain/OG@v0.0.9/deployment/k8s_private_bootstrap.yaml (about)

     1  apiVersion: apps/v1
     2  kind: StatefulSet
     3  metadata:
     4    name: ognb
     5  spec:
     6    selector:
     7      matchLabels:
     8        app: ognb
     9    replicas: 7
    10    template:
    11      metadata:
    12        labels:
    13          app: ognb
    14      spec:
    15        containers:
    16          - name: ognb
    17            image: 172.28.152.101:5000/ognb
    18            env:
    19              - name: OG_P2P.BOOTSTRAP_CONFIG_SERVER
    20                value: "http://ogboot:8008/7"
    21              - name: OG_P2P.NETWORK_ID
    22                value: "6"
    23              - name: OG_MODE
    24                value: "normal"
    25            ports:
    26              - name: rpc
    27                containerPort: 8000
    28                protocol: TCP
    29              - name: p2p
    30                containerPort: 8001
    31              - name: websocket
    32                containerPort: 8002
    33              - name: profiling
    34                containerPort: 8003
    35            volumeMounts:
    36              - name: rw
    37                mountPath: /rw
    38            command:
    39              ["./og", "-c", "/opt/config.toml", "-m", "-n", "-l", "/rw/log/", "-d", "/rw/datadir_1", "--genkey", "run"]
    40            resources:
    41              limits:
    42                cpu: "2"
    43              requests:
    44                cpu: "100m"
    45    volumeClaimTemplates:
    46      - metadata:
    47          name: rw
    48        spec:
    49          accessModes: [ "ReadWriteOnce" ]
    50          storageClassName: "local-storage"
    51          resources:
    52            requests:
    53              storage: 20Gi
    54          selector:
    55            matchLabels:
    56              target: og
    57  
    58  -----
    59  apiVersion: v1
    60  kind: Service
    61  metadata:
    62    name: ognb
    63  spec:
    64    type: NodePort
    65    ports:
    66      - port: 8000
    67        nodePort: 30300
    68        name: rpc
    69      - port: 8002
    70        nodePort: 30302
    71        name: websocket
    72      - port: 8003
    73        nodePort: 30303
    74        name: profiling
    75    selector:
    76      app: ognb