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

     1  apiVersion: extensions/v1beta1
     2  kind: Deployment
     3  metadata:
     4    name: ogboot
     5  spec:
     6    selector:
     7      matchLabels:
     8        app: ogboot
     9    replicas: 1
    10    template:
    11      metadata:
    12        labels:
    13          app: ogboot
    14      spec:
    15        containers:
    16          - name: ogboot
    17            image: 172.28.152.101:5000/ogboot:latest
    18            ports:
    19              - name: http
    20                containerPort: 8008
    21    -----
    22  apiVersion: v1
    23  kind: Service
    24  metadata:
    25    name: ogboot
    26  spec:
    27    type: NodePort
    28    ports:
    29      - port: 8008
    30        targetPort: 8008
    31        nodePort: 31051
    32        name: http
    33    selector:
    34      app: ogboot