Skip to content

Instantly share code, notes, and snippets.

@dkeightley
Created June 2, 2019 00:08
Show Gist options
  • Save dkeightley/b2d4f8b1bd885f2aa13066b749b21b03 to your computer and use it in GitHub Desktop.
Save dkeightley/b2d4f8b1bd885f2aa13066b749b21b03 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: hostname-app
spec:
ports:
- port: 80
targetPort: 9376
selector:
app: hostname
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hostname-deployment
labels:
app: hostname
spec:
replicas: 3
selector:
matchLabels:
app: hostname
template:
metadata:
labels:
app: hostname
spec:
containers:
- name: funnyname
image: k8s.gcr.io/serve_hostname:1.1
ports:
- name: http
containerPort: 9376
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment