我是kubernetes, helm和google cloud的新手。
设置进入域时出现问题。我得到/做了什么:
- https://github.com/atlassian-labs/data-center-helm-charts/→Bitbucket都
- 安装在GKE with helm 一切都很顺利。bitbucket -server部署启动,bitbucket服务启动,入口启动。数据库一切正常
- 买域名
所以我试图代理bitbucket-server到子域,所以我可以在bitbucket。my-domain.com上使用它.
我做了什么:
- 使用自定义值安装带有helm(提供repo)的bitbucket。部分bitbucketvalues.yaml:
ingress:
create: true
nginx: true
maxBodySize: 250m
host: bitbucket.my-domain.com
path: "/"
annotations: {}
https: false
tlsSecretName:
- check ingress:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/ingress.class: nginx
meta.helm.sh/release-name: bitbucket-server
meta.helm.sh/release-namespace: atlassian
nginx.ingress.kubernetes.io/affinity: cookie
nginx.ingress.kubernetes.io/affinity-mode: persistent
nginx.ingress.kubernetes.io/proxy-body-size: 250m
nginx.ingress.kubernetes.io/proxy-connect-timeout: "60"
nginx.ingress.kubernetes.io/proxy-read-timeout: "60"
nginx.ingress.kubernetes.io/proxy-send-timeout: "60"
creationTimestamp: "2021-08-23T22:52:43Z"
generation: 1
labels:
app.kubernetes.io/instance: bitbucket-server
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: bitbucket
app.kubernetes.io/version: 7.15.1-jdk11
helm.sh/chart: bitbucket-0.15.0
managedFields:
- apiVersion: networking.k8s.io/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:kubernetes.io/ingress.class: {}
f:meta.helm.sh/release-name: {}
f:meta.helm.sh/release-namespace: {}
f:nginx.ingress.kubernetes.io/affinity: {}
f:nginx.ingress.kubernetes.io/affinity-mode: {}
f:nginx.ingress.kubernetes.io/proxy-body-size: {}
f:nginx.ingress.kubernetes.io/proxy-connect-timeout: {}
f:nginx.ingress.kubernetes.io/proxy-read-timeout: {}
f:nginx.ingress.kubernetes.io/proxy-send-timeout: {}
f:labels:
.: {}
f:app.kubernetes.io/instance: {}
f:app.kubernetes.io/managed-by: {}
f:app.kubernetes.io/name: {}
f:app.kubernetes.io/version: {}
f:helm.sh/chart: {}
f:spec:
f:rules: {}
manager: helm
operation: Update
time: "2021-08-23T22:52:43Z"
name: bitbucket-server
namespace: atlassian
resourceVersion: "928732"
uid: 11224174-3a27-4e28-a8e5-77e61aa996fa
spec:
rules:
- host: bitbucket.my-domain.com
http:
paths:
- backend:
serviceName: bitbucket-server
servicePort: 80
path: /
pathType: Prefix
status:
loadBalancer: {}
- 我还尝试在云dns中添加新的区域与域名bitbucket.my-domain.com
我没有在云DNS LB。正如我所检查的,它应该在进入创建后自动创建,但似乎出了问题。我卸载和安装了几次,它仍然没有创建负载平衡。
有人能给我提点建议吗?似乎我需要LB,但我不确定,为什么它不是自动创建的?Invalues.yaml
ingress:
create: true
nginx: true
maxBodySize: 250m
host: bitbucket.my-domain.com
path: "/"
annotations: {}
https: false
tlsSecretName:
注意nginx
字段被设置为true。这假设您已经在GKE集群上安装了Nginx入口控制器。使其工作的最直接方法是在GKE集群上安装控制器。你可以在这里找到安装说明。