Created
January 9, 2018 11:39
-
-
Save gowatana/6bbfb6d19737c9b17da9d62a70c43e1d 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/v1beta1 | |
kind: Deployment | |
metadata: | |
name: hello-deployment | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
run: hello-world | |
spec: | |
containers: | |
- name: hello | |
image: nginxdemos/hello:latest | |
ports: | |
- containerPort: 80 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: hello-service | |
labels: | |
run: hello-world | |
spec: | |
type: NodePort | |
ports: | |
- port: 80 | |
protocol: TCP | |
selector: | |
run: hello-world |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
下記の投稿むけ。
Oracle Linux 7 の Kubernetes で kubectl Basics。
https://gowatana.blogspot.jp/2018/01/kubectl-yaml.html