Skip to content

Instantly share code, notes, and snippets.

@gowatana
Created January 9, 2018 11:39
Show Gist options
  • Save gowatana/6bbfb6d19737c9b17da9d62a70c43e1d to your computer and use it in GitHub Desktop.
Save gowatana/6bbfb6d19737c9b17da9d62a70c43e1d to your computer and use it in GitHub Desktop.
---
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
@gowatana
Copy link
Author

gowatana commented Jan 9, 2018

下記の投稿むけ。

Oracle Linux 7 の Kubernetes で kubectl Basics。
https://gowatana.blogspot.jp/2018/01/kubectl-yaml.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment