github.com/mre-fog/trillianxx@v1.1.2-0.20180615153820-ae375a99d36a/examples/deployment/kubernetes/trillian-map-deployment.yaml (about)

     1  apiVersion: extensions/v1beta1
     2  kind: Deployment
     3  metadata:
     4    annotations:
     5      kompose.cmd: kompose convert
     6      kompose.version: 1.3.0 (HEAD)
     7    creationTimestamp: null
     8    labels:
     9      io.kompose.service: trillian-map
    10    name: trillian-map
    11  spec:
    12    replicas: 1
    13    strategy: {}
    14    template:
    15      metadata:
    16        creationTimestamp: null
    17        labels:
    18          io.kompose.service: trillian-map
    19      spec:
    20        containers:
    21        - command:
    22          - /go/bin/trillian_map_server
    23          - --mysql_uri=test:zaphod@tcp(db:3306)/test
    24          - --rpc_endpoint=0.0.0.0:8090
    25          - --http_endpoint=0.0.0.0:8091
    26          - --alsologtostderr
    27          image: us.gcr.io/project-name/map_server:latest
    28          imagePullPolicy: Always
    29          livenessProbe:
    30            exec:
    31              command:
    32              - curl
    33              - -f
    34              - http://localhost:8091/healthz
    35            failureThreshold: 3
    36            periodSeconds: 30
    37            timeoutSeconds: 30
    38          name: trillian-map
    39          ports:
    40          - containerPort: 8090
    41          - containerPort: 8091
    42          resources: {}
    43        restartPolicy: Always
    44  status: {}