无法在stackstorm HA(K8)上安装软件包

问题描述 投票:0回答:1

我一直试图在单个节点K8群集上使用这些链接来安装自定义包。

https://github.com/StackStorm/st2packs-dockerfiles/

https://github.com/stackstorm/stackstorm-ha

Stackstorm已使用默认的仪表板成功安装,但是当我尝试构建自定义包并进行头盔升级时,它无法正常工作。

这是我的stackstorm包目录和镜像Dockerfile:

/home/manisha.tanwar/st2packs-dockerfiles # ll st2packs-image/packs/st2_chef/
total 28
drwxr-xr-x. 4 manisha.tanwar domain users 4096 Apr 28 16:11 actions
drwxr-xr-x. 2 manisha.tanwar domain users 4096 Apr 28 16:11 aliases
-rwxr-xr-x. 1 manisha.tanwar domain users  211 Apr 28 16:11 pack.yaml
-rwxr-xr-x. 1 manisha.tanwar domain users   65 Apr 28 16:11 README.md
-rwxr-xr-x. 1 manisha.tanwar domain users  293 Apr 28 17:47 requirements.txt
drwxr-xr-x. 2 manisha.tanwar domain users 4096 Apr 28 16:11 rules
drwxr-xr-x. 2 manisha.tanwar domain users 4096 Apr 28 16:11 sensors

/ home / manisha.tanwar / st2packs-dockerfiles#cat st2packs-image / Dockerfile

ARG PACKS="file:///tmp/stackstorm-st2"
FROM stackstorm/st2packs:builder AS builder

COPY packs/st2_chef /tmp/stackstorm-st2/
RUN ls -la /tmp/stackstorm-st2
RUN git config --global http.sslVerify false

# Install custom packs
RUN /opt/stackstorm/st2/bin/st2-pack-install ${PACKS}

###########################
# Minimize the image size. Start with alpine:3.8,
# and add only packs and virtualenvs from builder.
FROM stackstorm/st2packs:runtime

使用命令创建图像docker build -t st2_chef:v0.0.2 st2packs-image

然后我如下更改了values.yaml:

  packs:
    configs:
      packs.yaml: |
        ---
        # chef pack
    image:
      name: st2_chef
      tag: 0.0.1
      pullPolicy: Always

并运行helm upgrade <release-name>.但它不会在仪表板和cmd上显示任何内容。

[请帮助,我们正计划从独立的stackstorm升级到Stackstorm HA,我需要为此完成POC。

提前感谢!

kubernetes kubernetes-helm
1个回答
0
投票

在社区的帮助下进行了努力。如果有人想关注,这里是链接:https://github.com/StackStorm/stackstorm-ha/issues/128

我没有使用docker registery推送图像并在头盔配置中使用它。

更新values.yaml为:

包装:#自定义StackStorm包配置。每条记录在“ / opt / stackstorm / configs /”中创建一个文件#https://docs.stackstorm.com/reference/pack_configs.html#configuration-file配置:core.yaml:|---图片:#取消注释以下块,以使自定义包图像可用于必要的容器#repository:您的远程docker-registry.io仓库:manishatanwar名称:st2_nagios标签:“ 0.0.1”pullPolicy:始终

© www.soinside.com 2019 - 2024. All rights reserved.