Skip to content

Instantly share code, notes, and snippets.

@cuotos
Created November 17, 2020 19:47
Show Gist options
  • Save cuotos/b6f3ddf00348e2ac287bdaa820357dd2 to your computer and use it in GitHub Desktop.
Save cuotos/b6f3ddf00348e2ac287bdaa820357dd2 to your computer and use it in GitHub Desktop.
basic kube manifests
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
labels:
role: training
spec:
replicas: 3
selector:
matchLabels:
app: web
template:
metadata:
labels:
app: web
spec:
containers:
- name: kuard
image: gcr.io/kuar-demo/kuard-amd64:purple
ports:
- name: http
containerPort: 8080
apiVersion: v1
kind: Namespace
metadata:
name: dans-ns
apiVersion: v1
kind: Service
metadata:
name: web-svc
spec:
type: NodePort
selector:
app: web
ports:
- port: 80
targetPort: 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment