about summary refs log tree commit diff
path: root/k8s/tazblog-rc.yaml
blob: 019d1bee0613b61417bef5e5608b156db2a323fe (plain) (blame)
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
apiVersion: v1
kind: ReplicationController
metadata:
  name: tazblog-5.1.1
spec:
  replicas: 2
  selector:
    app: tazblog
    version: v5.1.1
  template:
    metadata:
      labels:
        app: tazblog
        version: v5.1.1
    spec:
      containers:
        - image: tazjin/tazblog-haskell:master
          imagePullPolicy: Always
          name: tazblog
          command: ["tazblog", "--dbHost", "tazblog-db.default.svc.cluster.local"]
          ports:
            - containerPort: 8000
        - image: tazjin/varnish
          imagePullPolicy: Always
          name: tazblog-varnish
          ports:
            - containerPort: 6081
            - containerPort: 6082
        - image: tazjin/hitch:master
          imagePullPolicy: Always
          name: tazblog-hitch
          command: ["hitch", "--backend=[127.0.0.1]:6083", "--write-proxy", "--user=hitch", "/etc/hitch/ssl/tazblog-tls"]
          ports:
            - containerPort: 8443
          volumeMounts:
            - name: tazblog-tls
              readOnly: true
              mountPath: /etc/hitch/ssl
          resources:
            requests:
              memory: "1024Mi"
      volumes:
        - name: tazblog-tls
          secret:
            secretName: tazblog-tls