Created
January 26, 2020 22:10
-
-
Save rdemorais/b691e0eb3686093a915780a29f91a2c8 to your computer and use it in GitHub Desktop.
Serviço web simples
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: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: web | |
namespace: default | |
spec: | |
selector: | |
matchLabels: | |
run: web | |
template: | |
metadata: | |
labels: | |
run: web | |
spec: | |
containers: | |
- image: gcr.io/google-samples/hello-app:1.0 | |
imagePullPolicy: IfNotPresent | |
name: web | |
ports: | |
- containerPort: 8080 | |
protocol: TCP | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: web | |
namespace: default | |
spec: | |
ports: | |
- name: webnodeport | |
port: 8080 | |
targetPort: 8080 | |
nodePort: 32004 | |
selector: | |
run: web | |
type: NodePort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment