首页 > 其他分享 >busybox yaml file

busybox yaml file

时间:2023-06-25 19:22:48浏览次数:31  
标签:busybox name cronfile app clearlog yaml file

简单的busybox 的yaml 文件


kind: Deployment
apiVersion: apps/v1
metadata:
  name: clearlog
  namespace: default
  labels:
    app: busybox
spec:
  replicas: 3
  selector:
    matchLabels:
      app: clearlog
  template:
    metadata:
      labels:
        app: clearlog
    spec:
      volumes:
      - name: cronfile
        hostPath:
          path: /
          type: DirectoryOrCreate
      containers:
      - name: busybox
        image: busybox
        command: ["/bin/sh"]
        args: ["-c"," sleep 3600"]
        volumeMounts:
        - mountPath: /logs
          name: cronfile
apiVersion: v1
kind: Pod
metadata:
  name: clearlog
spec:
  nodeSelector: 
    kubernetes.io/hostname: ip-10-132-37-168.ap-east-1.compute.internal # 指定节点调度
  volumes:
  - name: cronfile
    hostPath:
      path: /
      type: DirectoryOrCreate
  containers:
  - name: busybox
    image: busybox
    command: ["/bin/sh"]
    args: ["-c"," sleep 3600"]
    volumeMounts:
    - mountPath: /logs
      name: cronfile

标签:busybox,name,cronfile,app,clearlog,yaml,file
From: https://www.cnblogs.com/JimsLzm/p/17503755.html

相关文章

  • Docker dockerfile
    参考资料:Docker教程|菜鸟教程Dockerfile是用于构建Docker镜像的文本文件,它包含了构建镜像所需的所有指令和配置信息。使用Dockerfile可以方便地构建镜像,确保每个镜像中的环境和配置都一致。下面是使用Dockerfile构建Docker镜像的基本步骤:在一个空目录下创建一个名为"Doc......
  • linux文件系统和设备驱动+file结构体
    1,文件系统和设备驱动之间的关系 1)应用程序和VFS之间是系统调用;2)VFS与文件系统以及设备文件之间的接口是file_operations结构体成员函数,这个结构体可以对文件进行打开,读写,定位,控制等操作;如下图所示: 3)由于字符设备的上层没有类似磁盘的ext2等文件系统,所以字符设备的file_opte......
  • ORA-15061 reported while doing a file operation with 11.1 or 11.2 ASM after PSU
    ORA-15061reportedwhiledoingafileoperationwith11.1or11.2ASMafterPSUappliedindatabasehome[ID1070880.1]--------------------------------------------------------------------------------修改时间26-OCT-2011类型PROBLEM状态PUBLISH......
  • dbca -silent -responsefile 建库由于tmpfs太小报错ORA-27102: out of memory
    错误信息:[oracle@db01~]$dbca-silent-responsefiledbca.rspCopyingdatabasefiles1%complete2%complete4%complete12%complete100%completeLookatthelogfile"/DBSoft/oracle/cfgtoollogs/dbca/woo/woo.log"forfurtherdetails.[oracle@db01......
  • spring profile 原理
    springboot是如何做到根据配置的springprofile值来决定引用不同环境的application.yml配置文件的? SpringBoot通过使用Spring框架的Profile功能,实现了根据配置的SpringProfile值来决定引用不同环境的application.yml配置文件。在SpringBoot中,可以通过在......
  • pytest + yaml 框架 -41.postman 和 python代码也能录制成用例
    前言python代码和postman写的接口也能通过录制功能自动生成yaml格式用例了。python代码运行后自动录制环境准备参考前面一篇https://www.cnblogs.com/yoyoketang/p/17495374.html在项目本地新建一个recorde.py,名称随便定义frompytest_yaml_yoyo.mitm_httpimportRecode......
  • Invalid character found in the request target [/api/hsFile/download?filePath=E:
    java.lang.IllegalArgumentException:Invalidcharacterfoundintherequesttarget[/api/hsFile/download?filePath=E:\\%E4%B8%B4%E6%97%B6%E6%96%87%E4%BB%B6&fileName=N230508A0002.xlsx].ThevalidcharactersaredefinedinRFC7230andRFC39861、原因:/a......
  • mule mvn app dockerfile
    dockerfileFROMopenjdk:8-jdk-alpineasTEMP_BUILD_IMAGEWORKDIR/apps/RUNset-eux&&sed-i's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g'/etc/apk/repositoriesRUNapkupdate&&apkadd--no-cachebashcurlwget&&......
  • 部署filebeat
    以UAT10.200.1.68为例:1.上传压缩包 filebeat-7.16.2-linux-x86_64.tar.gz 2.解压 filebeat-7.16.2-linux-x86_64.tar.gzcd/home/middleware3tar-zxvf filebeat-7.16.2-linux-x86_64.tar.gz-C/home/middleware3/3、手动改名 4、原有的配置文件备份,上传自己的配......
  • Docker原理和Dockerfile的原理介绍
    Docker原理Docker是一种容器化平台,可以在其中运行应用程序。Docker将应用程序和其依赖项打包在一个容器中,提供了一种轻量级的解决方案,可以轻松地在任何平台上运行应用程序。Docker的核心技术是Linux容器(LXC)。容器是一种虚拟化技术,允许应用程序在有限的资源下运行,同时提供了强大的隔......