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

     1  apiVersion: extensions/v1beta1
     2  kind: Deployment
     3  metadata:
     4    name: ognb
     5  spec:
     6    replicas: 2
     7    template:
     8      metadata:
     9        labels:
    10          app: ognb
    11        annotations:
    12          kubernetes.io/ingress-bandwidth: 1024M
    13          kubernetes.io/egress-bandwidth: 1024M
    14      spec:
    15        containers:
    16          - name: ognb
    17            image: localhost:5000/ognb
    18            env:
    19              - name: og_p2p.bootstrap_nodes
    20                value: "onode://13efd71bea2c423307c4c477a2c73205bd3d22c1ed588f9c4aac4fa1d8fdb05d92033218218551ccd0b771020c0415d480d3e25ab366ce356f8aab2d50c1485d@192.168.53.203:8001"
    21              - name: og_p2p.bootstrap_node
    22                value: "false"
    23              - name: og_p2p.network_id
    24                value: 2
    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            command:
    36              ["./og", "-c", "/opt/config.toml", "-m", "-n", "-l", "/rw/log/", "-d", "/rw/datadir_1", "--genkey", "run"]
    37            resources:
    38              limits:
    39                cpu: "2"
    40              requests:
    41                cpu: "100m"