Welcome to DOKS
Congratulations, you deployed your first workload! You have just created a Deployment responsible for managing 2 instances of Pod workloads running the docker image given in the manifest. In addition to this Deployment, you have also configured a Service of type LoadBalancer that exposes the Deployment publicly using a DigitalOcean Load Balancer, which is a paid service.
Here's what's running:
---
kind: Service
apiVersion: v1
metadata:
name: doks-example
spec:
type: LoadBalancer
selector:
app: doks-example
ports:
- name: http
protocol: TCP
port: 80
targetPort: 80
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: doks-example
spec:
replicas: 2
template:
metadata:
labels:
app: doks-example
spec:
containers:
- name: nginx
image: digitalocean/doks-example
ports:
- containerPort: 80
protocol: TCP
Learn more about DigitalOcean Kubernetes Service
-
White Paper
Running Cloud Native Applications
Running Cloud Native Application on DigitalOcean Kubernetes Service.
-
Education
Resource Center
Learn more about building and deploying microservices with a robust library of Kubernetes assets.