Skip to content

Instantly share code, notes, and snippets.

@guybrush
Created September 3, 2015 16:56
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 guybrush/ccfd11abfae1a870063e to your computer and use it in GitHub Desktop.
Save guybrush/ccfd11abfae1a870063e to your computer and use it in GitHub Desktop.
k8s-nginx
apiVersion: v1
kind: ReplicationController
metadata:
name: nginx
namespace: default
labels:
name: nginx
spec:
replicas: 1
selector:
name: nginx
template:
metadata:
labels:
name: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 8080
apiVersion: v1
kind: Service
metadata:
name: nginx
labels:
name: nginx
spec:
# type: NodePort
selector:
name: nginx
ports:
- port: 80
targetPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment