Skip to content

Instantly share code, notes, and snippets.

@strigazi
Created May 17, 2019 11:53
Show Gist options
  • Select an option

  • Save strigazi/d1d11f1efe91ce2045bf5d7517659924 to your computer and use it in GitHub Desktop.

Select an option

Save strigazi/d1d11f1efe91ce2045bf5d7517659924 to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: Service
metadata:
name: go-server
labels:
app: go-server
spec:
type: ClusterIP
ports:
- port: 9500
protocol: TCP
name: tcp-9500
selector:
app: go-server
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: go-server
spec:
selector:
matchLabels:
app: go-server
replicas: 1
template:
metadata:
labels:
app: go-server
spec:
containers:
- name: go-server
#image: docker.io/strigazi/go-server:port-9500
image: busybox
command:
- sleep
- 10s
ports:
- containerPort: 9500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment