首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >acumos AI clio安装失败,“将YAML转换为JSON时出错”

acumos AI clio安装失败,“将YAML转换为JSON时出错”
EN

Stack Overflow用户
提问于 2020-10-15 03:10:43
回答 2查看 100关注 0票数 0

我一直在尝试安装clio版本。

VM : ubuntu18.04 16核32 GB RAM 500 GB存储。

命令:

bash /home/ubuntu/system-integration/tools/aio_k8s_deployer/aio_k8s_deployer.sh所有acai服务器ubuntu泛型

所有的安装步骤都已成功完成,但在“安装-lum”期间,我得到了以下错误。

错误:

YAML解析lum-helm/模板/部署的错误。yaml:错误将YAML转换为JSON: yaml:第36行:在此上下文中不允许映射值

解决方案:

我能够摆脱这些错误(通过helm安装-试运行),通过a.删除“资源、亲和力和容忍块b”,将"Release.Name“替换为实际的发布值(例如license configmap)。

但是,当我运行完整安装命令时,这些舵图将再次更新。

全错误:

..。

  • helm安装-f kubernetes/usage es.yaml-name license-clio -命名空间默认-调试 ./kubernetes/license-usage-manager/lum-helm调试使用本地端口创建的隧道:'46109'

调试服务器:"127.0.0.1:46109“

调试原始图表版本:"“调试图表路径: /deploy/system-integration/AIO/lum/kubernetes/license-usage-manager/lum-helm

YAML解析lum-helm/模板/部署的错误。yaml:错误将YAML转换为JSON: yaml:第36行:在此上下文中不允许映射值

Yaml of deployment.yaml

代码语言:javascript
复制
apiVersion: apps/v1
kind: Deployment
metadata:
  name: {{ template "lum-helm.fullname" . }}
  labels:
    app: {{ template "lum-helm.name" . }}
    chart: {{ template "lum-helm.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  replicas: {{ .Values.replicaCount }}
  selector:
    matchLabels:
      app: {{ template "lum-helm.name" . }}
      release: {{ .Release.Name }}
  template:
    metadata:
      labels:
        app: {{ template "lum-helm.name" . }}
        release: {{ .Release.Name }}
    spec:
      initContainers:
            - name: wait-for-db
              image: busybox:1.28
              command:
              - 'sh'
              - '-c'
              - >
                until nc -z -w 2 {{ .Release.Name }}-postgresql {{ .Values.postgresql.servicePort }} && echo postgresql ok;
                  do sleep 2;
                done
      containers:
        - name: {{ .Chart.Name }}
          image: nexus3.acumos.org:10002/acumos/lum-server:default
          imagePullPolicy: {{ .Values.image.pullPolicy }}
          env:
            - name: DATABASE_PASSWORD
              valueFrom:
                secretKeyRef:
                  name: {{ .Release.Name }}-postgresql
                  key: postgresql-password
            - name: NODE
          volumeMounts:
          - name: config-volume
            mountPath: /opt/app/lum/etc/config.json
            subPath: lum-config.json
          ports:
            - name: http
              containerPort: 2080
              protocol: TCP
          livenessProbe:
            httpGet:
              path: '/api/healthcheck'
              port: http
            initialDelaySeconds: 60
            periodSeconds: 10
            failureThreshold: 10
          readinessProbe:
            httpGet:
              path: '/api/healthcheck'
              port: http
            initialDelaySeconds: 60
            periodSeconds: 10
            failureThreshold: 10
          resources:
{{ toYaml .Values.resources | indent 12 }}
    {{- with .Values.nodeSelector }}
      nodeSelector:
{{ toYaml . | indent 8 }}
    {{- end }}
    {{- with .Values.affinity }}
      affinity:
{{ toYaml . | indent 8 }}
    {{- end }}
    {{- with .Values.tolerations }}
      tolerations:
{{ toYaml . | indent 8 }}
    {{- end }}
      volumes:
        - name: config-volume
          configMap:
            name: {{ .Release.Name }}-configmap
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2020-10-15 09:50:39

此错误按照Error trying to install Acumos Clio using AIO解决。

我提供了一个映像:1.3.2在我的实际value.yaml和lum部署是成功的

在acumos安装程序中,有两个安装程序副本-lum.sh和values.yaml。

实际:

~/system-integration/AIO/lum/kubernetes/value.yaml

和运行时副本

~/aio_k8s_deployer/deploy/system-integration/AIO/lum/kubernetes/value.yaml

票数 1
EN

Stack Overflow用户

发布于 2020-10-19 10:41:44

我找到了解决办法:

  • 取消了对values.yaml文件中的图像标记行的注释,
  • 在set-lum.sh文件中注释了以下行(这些代码已经在第一次运行时执行,并以这种方式跳过了覆盖问题)

代码语言:javascript
复制
rm -frd kubernetes/license-usage-manager
git clone "https://gerrit.acumos.org/r/license-usage-manager" \
  kubernetes/license-usage-manager
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64364292

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档