-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodis-fe-template.yaml
42 lines (42 loc) · 1.11 KB
/
codis-fe-template.yaml
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
apiVersion: v1
kind: ReplicationController
metadata:
name: codis-fe-PRODUCT_NAME
spec:
replicas: 1
template:
metadata:
labels:
app: codis-fe-PRODUCT_NAME
spec:
imagePullSecrets:
- name: adhoc-docker-registry
containers:
- name: codis-fe
image: registry.appadhoc.com:30443/adhoc-cache:3.2
imagePullPolicy: IfNotPresent
command: ["codis-fe"]
args: ["-l","/tmp/$(POD_NAME).log","--zookeeper","$(ZK_ADDR)","--listen=$(POD_IP):8080","--assets=$(CODIS_PATH)/bin/assets"]
env:
- name: CODIS_PATH
value: "/gopath/src/github.com/CodisLabs/codis"
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: ZK_ADDR
value: "adhoc-zk-headless:2181"
ports:
- containerPort: 8080
name: fe
resources:
limits:
cpu: "2"
memory: 2Gi
requests:
cpu: "0.1"
memory: 0.1Gi