Last active
November 15, 2020 15:37
-
-
Save sameg14/b4b69618764af8b753641931fc0c1721 to your computer and use it in GitHub Desktop.
This file contains 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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: tetris | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: tetris | |
spec: | |
containers: | |
- name: tetris | |
image: lrakai/tetris:latest | |
ports: | |
- containerPort: 80 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: game | |
labels: | |
app: game | |
spec: | |
selector: | |
# Use labels to select the pods to route traffic to | |
app: game | |
ports: | |
- protocol: TCP | |
port: 80 | |
# Allocate a port on each node in the cluster | |
type: NodePort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment