株式会社ヴァンデミックシステム

Blog

<スポンサーリンク>

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

 

これをつけないとCrashLoopBackOffになる

 

          command:
            - sleep
            - infinity

 

起動

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

 

 

 

<スポンサーリンク>

コメントを残す

Allowed tags:  you may use these HTML tags and attributes: <a href="">, <strong>, <em>, <h1>, <h2>, <h3>
Please note:  all comments go through moderation.

*

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)