Skip to content

Instantly share code, notes, and snippets.

@durch
Last active March 29, 2017 20:40
Show Gist options
  • Save durch/dbdd2a37aed86a90774e4bd67ccb130c to your computer and use it in GitHub Desktop.
Save durch/dbdd2a37aed86a90774e4bd67ccb130c to your computer and use it in GitHub Desktop.
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: redis
spec:
replicas: 1
template:
metadata:
labels:
app: redis
spec:
containers:
- name: redis
image: sickp/alpine-redis:latest
ports:
- containerPort: 6379
env:
- name: VER
value: 0.1
restartPolicy: Always
---
kind: Service
apiVersion: v1
metadata:
name: redis
spec:
selector:
app: redis
ports:
- protocol: TCP
port: 6379
targetPort: 6379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment