Skip to content

Instantly share code, notes, and snippets.

@incfly
Last active February 27, 2019 23:59
Show Gist options
  • Save incfly/6ffa1381d7f3f971001a4490307ca047 to your computer and use it in GitHub Desktop.
Save incfly/6ffa1381d7f3f971001a4490307ca047 to your computer and use it in GitHub Desktop.
Istio-redis-investigation
apiVersion: v1
kind: Pod
metadata:
annotations:
sidecar.istio.io/inject: "false"
name: redis-cli-nosidecar
namespace: default
spec:
containers:
- args:
- sleep
- "300000"
image: redis
imagePullPolicy: IfNotPresent
name: redis-cli-test
resources:
requests:
cpu: 100m
---
apiVersion: v1
kind: Pod
metadata:
name: redis-cli-sidecar
namespace: default
spec:
containers:
- args:
- sleep
- "300000"
image: redis
imagePullPolicy: IfNotPresent
name: redis-cli-test
resources:
requests:
cpu: 100m
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: redis-cart
spec:
template:
metadata:
labels:
app: redis-cart
spec:
containers:
- name: redis
image: redis:alpine
ports:
- containerPort: 6379
readinessProbe:
periodSeconds: 5
tcpSocket:
port: 6379
livenessProbe:
periodSeconds: 5
tcpSocket:
port: 6379
volumeMounts:
- mountPath: /data
name: redis-data
resources:
limits:
memory: 256Mi
cpu: 125m
requests:
cpu: 70m
memory: 200Mi
volumes:
- name: redis-data
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
name: redis-cart
spec:
type: ClusterIP
selector:
app: redis-cart
ports:
- name: redis
port: 6379
targetPort: 6379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment