Created
October 5, 2022 04:02
-
-
Save VMuliadi/2bee794344f0f2045e8e54bcf99e17c3 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: echoserver | |
labels: | |
app: echoserver | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: echoserver | |
template: | |
metadata: | |
labels: | |
app: echoserver | |
spec: | |
containers: | |
- image: gcr.io/google_containers/echoserver:1.0 | |
imagePullPolicy: Always | |
name: echoserver | |
ports: | |
- containerPort: 8080 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: echoserver | |
labels: | |
app: echoserver | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
protocol: TCP | |
selector: | |
app: echoserver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment