Created
December 19, 2019 13:30
-
-
Save ereshzealous/36fef152cf0345b2a3d1d2c96df570e5 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
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