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

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