Last active
February 27, 2019 23:59
-
-
Save incfly/6ffa1381d7f3f971001a4490307ca047 to your computer and use it in GitHub Desktop.
Istio-redis-investigation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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