Skip to content

Instantly share code, notes, and snippets.

@moosh3
Created October 26, 2020 15:47
Show Gist options
  • Save moosh3/67c8b1c50be0a28302d0428445ae5f6c to your computer and use it in GitHub Desktop.
Save moosh3/67c8b1c50be0a28302d0428445ae5f6c to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
labels:
app: redis
spec:
selector:
matchLabels:
app: redis
tier: backend
replicas: 1
template:
metadata:
labels:
app: redis
tier: backend
spec:
containers:
- name: master
image: redis
resources:
requests:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 6379
---
apiVersion: v1
kind: Service
metadata:
name: redis
labels:
app: redis
tier: backend
spec:
ports:
- port: 6379
targetPort: 6379
selector:
app: redis
tier: backend
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dynamodb
labels:
app: dynamo
spec:
replicas: 1
selector:
matchLabels:
app: dynamo
template:
metadata:
labels:
app: dynamo
spec:
containers:
- name: dynamodb
image: amazon/dynamodb-local
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8000
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: dynamodb
labels:
app: dynamo
spec:
type: ClusterIP
ports:
- port: 8000
targetPort: 8000
protocol: TCP
name: http
selector:
app: dynamo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment