Deployment sample to launch ubuntu image in Kubernetes

sample

ubuntu-deployment.yaml


apiVersion: apps/v1
kind: Deployment
metadata:
  name: ubuntu
spec:
  replicas: 1
  selector:
    matchLabels:
      app: "ubuntu"
  template:
    metadata:
      labels:
        app: "ubuntu"
    spec:
      containers:
        - name: ubuntu
          image: ubuntu
          command:
            - sleep
            - infinity

If this is not attached, it will be Crash Loop Back Off

          command:
            - sleep
            - infinity

Start-up

yuta:~ $ kubectl apply -f ubuntu-pod.yaml 
deployment.apps/ubuntu created

Recommended Posts

Deployment sample to launch ubuntu image in Kubernetes
AWS ☆☆☆ Road to deployment 3 (short version, 4 times in total)
AWS ☆☆☆☆ The Road to Deployment 4-Final Chapter (Short Version, All 4 Times)
Deployment sample to launch ubuntu image in Kubernetes
Sample to start Ubuntu with Deployment with client-go
Ubuntu unable to log in
How to distinguish ubuntu cloud image
Java-How to compare image files in binary
Sample to unzip gz file in Java
(Memo) How to solve dummy output in Ubuntu 20.04
How to log in automatically when Ubuntu restarts
How to make an image partially transparent in Processing
Sample code to convert List to List <String> in Java Stream
[For beginners] Minimum sample to display RecyclerView in Java
Command memo to install xeyes in ubuntu docker environment
Android-Upload image files to Azure Blob Storage in Java
[Rails 6] How to set a background image in Rails [CSS]
AWS ☆☆☆ Road to deployment 3 (short version, 4 times in total)
Beginners use ubuntu in windows to prepare rails environment
How to launch Swagger UI and Swagger Editor in Docker