我一直在尝试安装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)。
但是,当我运行完整安装命令时,这些舵图将再次更新。
全错误:
..。
调试服务器:"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
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发布于 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
发布于 2020-10-19 10:41:44
我找到了解决办法:
rm -frd kubernetes/license-usage-manager
git clone "https://gerrit.acumos.org/r/license-usage-manager" \
kubernetes/license-usage-managerhttps://stackoverflow.com/questions/64364292
复制相似问题