Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
kind: List
apiVersion: v1
items:
- kind: Namespace
apiVersion: v1
metadata:
name: guestbook
- kind: Deployment
apiVersion: apps/v1beta1
metadata:
name: redis-master-v1.0.0
namespace: guestbook
labels:
app: redis-master
version: v1.0.0
spec:
replicas: 1
template:
metadata:
labels:
name: redis-master
group: guestbook
spec:
containers:
- name: master
image: redis
ports:
- containerPort: 6379
protocol: TCP
- kind: Service
apiVersion: v1
metadata:
name: redis-master
namespace: guestbook
labels:
name: redis-master
group: guestbook
spec:
ports:
- port: 6379
targetPort: 6379
protocol: TCP
selector:
name: redis-master
group: guestbook
- kind: Deployment
apiVersion: apps/v1beta1
metadata:
name: frontend-v2.0.0
namespace: guestbook
labels:
name: frontend
version: v2.0.0
spec:
replicas: 1
template:
metadata:
labels:
name: frontend
version: v2.0.0
group: guestbook
spec:
containers:
- name: frontend
image: relaxdiego/kubersample:v2
command:
- /usr/local/bin/ruby
- /usr/share/kubersample/app.rb
ports:
- containerPort: 4567
name: app
protocol: TCP
- kind: Service
apiVersion: v1
metadata:
name: frontend
namespace: guestbook
labels:
name: frontend
group: guestbook
spec:
ports:
- port: 8080
targetPort: app
protocol: TCP
selector:
name: frontend
group: guestbook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.