about summary refs log blame commit diff
path: root/k8s/tazblog-rc.yaml
blob: e8d9f8bb428e64b4ed9879bb8086a407ae9e52ab (plain) (tree)
1
2
3
4
5
6




                           
             






















                                                                                  
                                                                                                        









                                       
apiVersion: v1
kind: ReplicationController
metadata:
  name: tazblog
spec:
  replicas: 2
  selector:
    app: tazblog
  template:
    metadata:
      labels:
        app: tazblog
    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]:6081", "--user=hitch", "/etc/hitch/ssl/tazblog-tls"]
          ports:
            - containerPort: 8443
          volumeMounts:
            - name: tazblog-tls
              readOnly: true
              mountPath: /etc/hitch/ssl
      volumes:
        - name: tazblog-tls
          secret:
            secretName: tazblog-tls