Skip to content

Instantly share code, notes, and snippets.

@ksdme
Created March 31, 2024 07:56
Show Gist options
  • Save ksdme/891c98025b38e7360eae4c0d150c71d1 to your computer and use it in GitHub Desktop.
Save ksdme/891c98025b38e7360eae4c0d150c71d1 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-deployment
spec:
replicas: 2
selector:
matchLabels:
app: hello
template:
metadata:
labels:
app: hello
spec:
containers:
- image: pbitty/hello-from
name: hello
ports:
- containerPort: 80
apiVersion: v1
kind: Pod
metadata:
name: hello-one
spec:
containers:
- image: pbitty/hello-from
name: hello
ports:
- containerPort: 80
apiVersion: v1
kind: Service
metadata:
name: hello-service
spec:
selector:
app: hello
ports:
- port: 80
targetPort: 80
nodePort: 30006
type: NodePort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment