File: ctfe-deployment.yaml

package info (click to toggle)
golang-github-google-certificate-transparency 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,764 kB
  • sloc: sh: 606; makefile: 103; sql: 16
file content (87 lines) | stat: -rw-r--r-- 2,461 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
apiVersion: apps/v1
kind: Deployment
metadata:
  creationTimestamp: null
  labels:
    io.kompose.service: trillian-ctfe
  name: trillian-ctfe-deployment
spec:
  replicas: 4
  selector:
    matchLabels:
        io.kompose.service: trillian-ctfe
  strategy: {}
  template:
    metadata:
      labels:
        io.kompose.service: trillian-ctfe
    spec:
      containers:
        - name: trillian-ctfe
          args: [
            "--http_endpoint=0.0.0.0:6962",
            "--metrics_endpoint=0.0.0.0:6963",
            "--log_config=/ctfe-config/ct_server.cfg",
            "--alsologtostderr"
          ]
          image: gcr.io/${PROJECT_ID}/ctfe:${IMAGE_TAG}
          imagePullPolicy: Always
          resources:
            limits:
              cpu: 1.8
            requests:
              cpu: 300m
          livenessProbe:
            httpGet:
              path: /metrics
              port: metrics
            failureThreshold: 3
            periodSeconds: 30
            timeoutSeconds: 30
          env:
            - name: CLOUD_PROJECT
              valueFrom:
                configMapKeyRef:
                  name: ctfe-configmap
                  key: cloud-project
          ports:
          - containerPort: 6962
            name: http
          - containerPort: 6963
            name: http-metrics
          volumeMounts:
          - name: ctfe-config-volume
            mountPath: /ctfe-config
        - name: prometheus-to-sd
          image: gcr.io/google-containers/prometheus-to-sd:v0.5.2
          ports:
            - name: profiler
              containerPort: 6060
          command:
            - /monitor
            - --stackdriver-prefix=custom.googleapis.com
            - --source=ctfe:http://localhost:6963/metrics
            - --pod-id=$(POD_NAME)
            - --namespace-id=$(POD_NAMESPACE)
            - --scrape-interval=5s
            - --export-interval=60s
          env:
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
            - name: POD_NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
      volumes:
        - name: ctfe-config-volume
          configMap:
            name: ctfe-configmap
            items:
            - key: ctfe-config-file
              path: ct_server.cfg
            - key: roots
              path: roots
      restartPolicy: Always
status: {}