Last active
November 28, 2019 13:25
-
-
Save CalvinHartwell/a44d7d3d830c3e1fb13a945c59b56716 to your computer and use it in GitHub Desktop.
kubernetes training
This file contains hidden or 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: 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
apiVersion: v1
kind: Service
metadata:
name: cdk-cats
spec:
type: NodePort
selector:
app: cdk-cats
ports:
protocol: TCP
nodePort: 30080
port: 80
targetPort: 80