add redis initContainer
parent
2320563ba5
commit
894389b9d1
|
@ -32,6 +32,13 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: redis
|
app: redis
|
||||||
spec:
|
spec:
|
||||||
|
initContainers:
|
||||||
|
- name: init
|
||||||
|
image: busybox
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
command: ["/bin/sh", "-c", "sysctl -w net.core.somaxconn=1024"]
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
containers:
|
containers:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: redis:6.2.12
|
image: redis:6.2.12
|
||||||
|
@ -87,4 +94,3 @@ spec:
|
||||||
selector:
|
selector:
|
||||||
app: redis
|
app: redis
|
||||||
type: NodePort
|
type: NodePort
|
||||||
|
|
Loading…
Reference in New Issue