Skip to content

Instantly share code, notes, and snippets.

@CalvinHartwell
Last active November 28, 2019 13:25
Show Gist options
  • Save CalvinHartwell/a44d7d3d830c3e1fb13a945c59b56716 to your computer and use it in GitHub Desktop.
Save CalvinHartwell/a44d7d3d830c3e1fb13a945c59b56716 to your computer and use it in GitHub Desktop.
kubernetes training
---
apiVersion: extensions/v1
kind: Deployment
metadata:
name: letsk8s
labels:
app: letsk8s
spec:
replicas: 3
selector:
matchLabels:
app: letsk8s
template:
metadata:
labels:
app: letsk8s
spec:
containers:
- name: letsk8s
image: docker.io/library/kubernetestraining:latest
ports:
- containerPort: 80
@CalvinHartwell
Copy link
Author


apiVersion: v1
kind: Service
metadata:
name: cdk-cats
spec:
type: NodePort
selector:
app: cdk-cats
ports:

  • name: cdk-cats
    protocol: TCP
    nodePort: 30080
    port: 80
    targetPort: 80

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