Skip to content

Instantly share code, notes, and snippets.

@fuho
Last active March 12, 2017 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fuho/491eb9e81acbf986bda1a7f81d7cfa36 to your computer and use it in GitHub Desktop.
Save fuho/491eb9e81acbf986bda1a7f81d7cfa36 to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: ReplicationController
metadata:
name: game2048
labels:
name: game2048
spec:
replicas: 2
selector:
name: game2048
template:
metadata:
labels:
name: game2048
version: stable
spec:
containers:
- name: game2048
image: alexwhen/docker-2048
ports:
- containerPort: 80
nodeSelector:
kubernetes.io/hostname: cumulus
---
apiVersion: v1
kind: Service
metadata:
name: game2048
labels:
name: game2048
spec:
ports:
- port: 80
targetPort: 80
selector:
name: game2048
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment