Skip to Main Content
Mastering Elixir
book

Mastering Elixir

by André Albuquerque, Daniel Caixinha
July 2018
Intermediate to advanced content levelIntermediate to advanced
574 pages
14h 7m
English
Packt Publishing
Content preview from Mastering Elixir

Deploying your first pod

To deploy our first pod, we will define a Kubernetes Deployment configuration file. This file will declare the deployment strategy (spec.strategy), how many pods we want to have at any given moment (spec.replicas), the volumes that will be provided to the pod (spec.template.spec.volumes), and the recipe that should be used to spin up the pod containers (spec.template.spec.containers):

$ cat deploy/elixir-drip-deployment-prod.ymlapiVersion: extensions/v1beta1kind: Deploymentmetadata:  name: elixir-drip  namespace: production  labels:    app: elixir-drip    env: productionspec:  replicas: 3  strategy:    type: RollingUpdate    rollingUpdate:      maxUnavailable: 1      maxSurge: 2  template:    metadata:      labels:        app: elixir-drip        env: production
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Testing Elixir

Testing Elixir

Andrea Leopardi, Jeffrey Matthias

Publisher Resources

ISBN: 9781788472678Supplemental Content