Created
May 10, 2020 10:20
-
-
Save deepak1725/4993d97631e63332987e372398b08b08 to your computer and use it in GitHub Desktop.
Sample Kubernetes hello world app
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
# hello-kubernetes.yaml | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: hello-kubernetes | |
spec: | |
type: LoadBalancer | |
ports: | |
- port: 80 | |
targetPort: 8080 | |
selector: | |
app: hello-kubernetes | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: hello-kubernetes | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: hello-kubernetes | |
template: | |
metadata: | |
labels: | |
app: hello-kubernetes | |
spec: | |
containers: | |
- name: hello-kubernetes | |
image: paulbouwer/hello-kubernetes:1.8 | |
ports: | |
- containerPort: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment