• / company
    • about us
      • / about us

        The partner of choice for data & product engineering to drive business growth & deliver an impact within your organization
    • product engineering
      • / product engineering
        We specialize in Software Product Engineering, transforming your concepts into impactful products.
    • technology
      • / technology
        250+ specialists skilled in software, BI, integration, offering end-to-end services from research to ongoing maintenance.
    • methodology
      • / methodology
        We specialize in software product engineering, transforming your concepts into impactful products.
    • careers
      • / careers
        Our team needs one more awesome person, like you. Let’s grow together! Why not give it a try?
    • do good
      • / do good
        We’re a team devoted to making the world better with small acts. We get involved and always stand for kindness.
    • events
      • / events
        LLMs in Action: Transforming How We Work, Communicate, and Innovate
    • blog
      • / blog
        Why Every Developer Should Care About AI Plugins, And What You Might Be Missing
        mindit chats with Andreea Moldovan: “At mindit.io people really put effort into making it happen.”
    • contact us
      • / contact us
        We would love to hear from you! We have offices and teams in Romania and Switzerland. How can we make your business thrive?
  • / get in touch

Kubernetes 101 – Pods

Intro

The Pod object is the fundamental building block in Kubernetes.

It’s made of one or more (tightly related) containers, a shared networking layer, and shared filesystem volumes.

Similar to containers, pods are meant to be ephemeral – there is no expectation that a specific pod will persist for a long lifetime.

Its blueprint can be defined in a json or yaml file where you’ll specify what do you want your pod to contain and many more.
Example

apiVersion: v1

kind: Pod

metadata:

name: nginx-pod

namespace: dev

spec:

containers:

– name: nginx-container

image: nginx:1.14.2

ports:

– containerPort: 80

In the example above we specify that we want a pod named nginx-pod to be instantiated in the dev namespace.

It should have a single container named nginx-container running the nginx:1.14.2 application and should expose to outside network traffic the port 80.

To create the pod you just need to:

>> kubectl apply -f nginx-pod.yaml

Which tells the Kubernetes client to create and start whatever resource is defined in that file.
Follow the Kubernetes 101 series on mindit.io.

Check out new-spike.net for other articles on Kubernetes and much more!

Distribute:

/turn your vision into reality

The best way to start a long-term collaboration is with a Pilot project. Let’s talk.