Last active
August 28, 2019 10:12
-
-
Save wuestkamp/678b1257428d847a052b6dcb812ab06d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: service | |
name: service | |
spec: | |
ports: | |
- name: 80-80 | |
nodePort: 30080 | |
port: 80 | |
protocol: TCP | |
targetPort: 80 | |
selector: | |
id: app | |
type: NodePort | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: app | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
id: app | |
template: | |
metadata: | |
labels: | |
id: app | |
spec: | |
containers: | |
- image: XXX | |
name: nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment