---
title: "Discussion on \"YAML templates for pod creation in Kubernetes\" | Hashnode"
description: "Discussion on \"YAML templates for pod creation in Kubernetes\". A pod can be created using a YAML template\n$vim pod_definition.yml\nA simple pod_definition template in YAML is as follows:\napiVersion: v1\nkind: Pod\nmetadata:\nname: new-pod\nspec:\n       containers:\n- name: nginx\nimage: nginx\nThen, execute the command:..."
url: "https://hashnode.com/posts/yaml-templates-for-pod-creation-in-kubernetes/650f3a2f22a44b4df4ca28c4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [YAML templates for pod creation in Kubernetes](https://parinithabs.hashnode.dev/yaml-templates-for-pod-creation-in-kubernetes?utm_source=hashnode&utm_medium=feed)

A pod can be created using a YAML template $vim pod\_definition.yml A simple pod\_definition template in YAML is as follows: apiVersion: v1 kind: Pod metadata: name: new-pod spec: containers: - name: nginx image: nginx Then, execute the command:...

Sep 23, 2023 · 1 min read · parinithabs.hashnode.dev  
Read the article

-   [#kubernetes](https://hashnode.com/tag/kubernetes)
-   [#devops](https://hashnode.com/tag/devops)
-   [#devops-articles](https://hashnode.com/tag/devops-articles)
-   [#devopscommunity](https://hashnode.com/tag/devopscommunity)
-   [#devops-journey](https://hashnode.com/tag/devops-journey)

## Written by

[PARINITHA B.S](https://hashnode.com/@parin1997)

@parin1997

  
[View profile](https://hashnode.com/@parin1997)

Software Engineer

## Responses 1

Markdown supported · ⌘↵ to post

[Roopesh Vetcha](https://hashnode.com/@vetcharoopesh)

[Jan 22, 2024](https://hashnode.com/posts/yaml-templates-for-pod-creation-in-kubernetes/650f3a2f22a44b4df4ca28c4/comment/65ae395b3f6ded275a618716)

Hey There!

[PARINITHA B.S](https://hashnode.com/@parin1997)

[Jan 22, 2024](https://hashnode.com/posts/yaml-templates-for-pod-creation-in-kubernetes/650f3a2f22a44b4df4ca28c4/comment/65ae395b3f6ded275a618716#reply-65ae3b84f17224e9f88c116a)

How can I help you?

[Roopesh Vetcha](https://hashnode.com/@vetcharoopesh)

[Jan 22, 2024](https://hashnode.com/posts/yaml-templates-for-pod-creation-in-kubernetes/650f3a2f22a44b4df4ca28c4/comment/65ae395b3f6ded275a618716#reply-65ae60d4c044424393f0730a)

can we connect? [PARINITHA B.S](https://hashnode.com/@parin1997)
