Skip to content

Instantly share code, notes, and snippets.

@ereshzealous
Created December 19, 2019 13:30
Show Gist options
  • Save ereshzealous/36fef152cf0345b2a3d1d2c96df570e5 to your computer and use it in GitHub Desktop.
Save ereshzealous/36fef152cf0345b2a3d1d2c96df570e5 to your computer and use it in GitHub Desktop.
kind: Service
apiVersion: v1
metadata:
name: discovery-client
spec:
selector:
app: discovery-client
ports:
- protocol: TCP
port: 8081
nodePort: 30084
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: discovery-client
namespace: default
spec:
selector:
matchLabels:
app: discovery-client
replicas: 1
template:
metadata:
labels:
app: discovery-client
spec:
containers:
- name: discovery-client
image: discovery-client:latest
imagePullPolicy: Never
ports:
- containerPort: 8081
env:
- name: env.namespace
value: default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment