December 2017
Intermediate to advanced
404 pages
9h 28m
English
Now that you have your container images available on your Kubernetes cluster (either by building them locally on your Minikube VM or by pushing them to a registry and authorizing your cluster to access that registry), we can begin deploying the actual event service. Since the event service itself is stateless, we will deploy it using a regular Deployment object, not as StatefulSet.
Continue by creating a new file—events-deployment.yaml—with the following contents:
apiVersion: apps/v1beta1 kind: Deployment metadata: name: eventservice spec: replicas: 2 template: metadata: labels: myevents/app: events myevents/tier: api spec: containers: - name: api image: myevents/eventservice imagePullPolicy: Never ports: ...
Read now
Unlock full access