2015-11-20 01:59:52 +01:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ReplicationController
|
|
|
|
metadata:
|
2016-02-14 01:43:22 +01:00
|
|
|
name: tazblog-5.1.3
|
2015-11-20 01:59:52 +01:00
|
|
|
spec:
|
2015-11-20 10:58:15 +01:00
|
|
|
replicas: 2
|
2015-11-20 01:59:52 +01:00
|
|
|
selector:
|
|
|
|
app: tazblog
|
2016-02-14 01:43:22 +01:00
|
|
|
version: v5.1.3
|
2015-11-20 01:59:52 +01:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: tazblog
|
2016-02-14 01:43:22 +01:00
|
|
|
version: v5.1.3
|
2015-11-20 01:59:52 +01:00
|
|
|
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
|
2015-11-21 20:31:05 +01:00
|
|
|
command: ["hitch", "--backend=[127.0.0.1]:6083", "--write-proxy", "--user=hitch", "/etc/hitch/ssl/tazblog-tls"]
|
2015-11-20 01:59:52 +01:00
|
|
|
ports:
|
|
|
|
- containerPort: 8443
|
|
|
|
volumeMounts:
|
|
|
|
- name: tazblog-tls
|
|
|
|
readOnly: true
|
|
|
|
mountPath: /etc/hitch/ssl
|
2015-11-24 14:07:20 +01:00
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: "1024Mi"
|
2015-11-20 01:59:52 +01:00
|
|
|
volumes:
|
|
|
|
- name: tazblog-tls
|
|
|
|
secret:
|
|
|
|
secretName: tazblog-tls
|