Попробуйте проверить журналы предварительной настройки, пока модули еще работают:
kubectl -n gocd exec -it gocd-app-server-68bf7759b9-9dmr5 -c gocd-server cat /godata/logs/preconfigure.log
kubectl -n gocd exec -it gocd-app-server-68bf7759b9-9dmr5 -c gocd-server cat /godata/logs/preconfigure_complete.log
У меня была ошибка в конце, другой код, но это может помочь найти вашу проблему:
checking if server has already been configured
No configuration found in cruise-config.xml. Using default preconfigure_server scripts to configure server
Trying to create an elastic profile now.
HTTP/1.1 200 OK
Date: Sat, 09 Mar 2019 14:59:05 GMT
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-UA-Compatible: chrome=1
Set-Cookie: JSESSIONID=node01oiy3yzw700oc1kq79gazxg27m1.node0;Path=/go;Expires=Sat, 23-Mar-2019 14:59:05 GMT;Max-Age=1209600;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Cache-Control: max-age=0, private, must-revalidate
Content-Type: application/vnd.go.cd.v1+json;charset=utf-8
ETag: "f710a37eb9543dcd53aa78be26c62ae6"
X-Runtime: 1248
Vary: Accept-Encoding, User-Agent
Transfer-Encoding: chunked
{
"_links" : {
"self" : {
"href" : "http://localhost:8153/go/api/elastic/profiles/demo-app"
},
"doc" : {
"href" : "https://api.gocd.org/19.2.0/#elastic-agent-profiles"
},
"find" : {
"href" : "http://localhost:8153/go/api/elastic/profiles/:profile_id"
}
},
"id" : "demo-app",
"plugin_id" : "cd.go.contrib.elasticagent.kubernetes",
"properties" : [ {
"key" : "Image",
"value" : "gocd/gocd-agent-docker-dind:v19.2.0"
}, {
"key" : "PodConfiguration",
"value" : "apiVersion: v1\nkind: Pod\nmetadata:\n name: pod-name-prefix-{{ POD_POSTFIX }}\n labels:\n app: web\nspec:\n serviceAccountName: default\n containers:\n - name: gocd-agent-container-{{ CONTAINER_POSTFIX }}\n image: gocd/gocd-agent-docker-dind:v19.2.0\n securityContext:\n privileged: true"
}, {
"key" : "SpecifiedUsingPodConfiguration",
"value" : "true"
}, {
"key" : "Privileged",
"value" : "true"
} ]
}Trying to configure plugin settings.
HTTP/1.1 100 Continue
checking if server has already been configured
No configuration found in cruise-config.xml. Using default preconfigure_server scripts to configure server
Trying to create an elastic profile now.
checking if server has already been configured
No configuration found in cruise-config.xml. Using default preconfigure_server scripts to configure server
Trying to create an elastic profile now.
checking if server has already been configured
No configuration found in cruise-config.xml. Using default preconfigure_server scripts to configure server
Trying to create an elastic profile now.
/ # command terminated with exit code 137
также есть некоторые другие файлы журналов, которые могут помочь вам определить это:
/ # ls -l /godata/logs/
total 212
-rw-r--r-- 1 go go 0 Mar 9 14:53 go-server-perf.log
-rw-r--r-- 1 go go 105813 Mar 9 15:10 go-server.log
-rw-r--r-- 1 go go 0 Mar 9 14:53 go-shine.log
-rw-r--r-- 1 go go 26788 Mar 9 15:09 plugin-cd.go.artifact.docker.registry.log
-rw-r--r-- 1 go go 1482 Mar 9 15:09 plugin-cd.go.authentication.ldap.log
-rw-r--r-- 1 go go 1626 Mar 9 15:09 plugin-cd.go.authentication.passwordfile.log
-rw-r--r-- 1 go go 58970 Mar 9 15:09 plugin-cd.go.contrib.elasticagent.kubernetes.log
в моем случае произошла ошибка в plugin-cd.go.contrib.elasticagent.kubernetes.log
Но вы также можете отключить предварительную настройку в values.yaml
server:
shouldPreconfigure: false
и повторно разверните его с помощью
helm delete --purge gocd-app
helm install stable/gocd --name gocd-app --namespace gocd -f path/to/values.yaml
values.yaml для диаграммы, которую вы можете получить https://raw.githubusercontent.com/helm/charts/master/stable/gocd/values.yaml