sameersbn / sameersbn/docker-gitlab

Cannot enable HTTPS

Open
#2,381 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
8.1k
Forks
2.1k
Avg merge
17h 47m
Merged PRs (30d)
7

Description

Hi,
I am using kubernetes version present in master/kubernetes/{deploy.sh}. Default HTTP works fine. However, when I enable HTTPS, the pod keeps restarting. Any help is highly appreciated. Here are my changes -

--- a/kubernetes/gitlab-rc.yml                                        
+++ b/kubernetes/gitlab-rc.yml                                        
@@ -17,9 +17,9 @@ spec:                                               
         image: sameersbn/gitlab:13.12.3                              
         env:                                                         
         - name: TZ                                                   
-          value: Asia/Kolkata                                        
+          value: America/Chicago                                     
         - name: GITLAB_TIMEZONE                                      
-          value: Kolkata                                             
+          value: Central Time (US & Canada)                          
                                                                      
         - name: GITLAB_SECRETS_DB_KEY_BASE                           
           value: long-and-random-alpha-numeric-string                
@@ -29,16 +29,20 @@ spec:                                             
           value: long-and-random-alpha-numeric-string                
                                                                      
         - name: GITLAB_ROOT_PASSWORD                                 
-          value:                                                     
+          value: rootpassword                                        
         - name: GITLAB_ROOT_EMAIL                                    
-          value:                                                     
+          value: root@mycompany.com                                  
                                                                      
         - name: GITLAB_HOST                                          
-          value: git.default.cluster.local                           
+          value: localhost:10443                                     
         - name: GITLAB_PORT                                          
-          value: "80"                                                
+          value: "10443"                                             
         - name: GITLAB_SSH_PORT                                      
           value: "22"                                                
+        - name: GITLAB_HTTPS                                         
+          value: "true"                                              
+        - name: SSL_SELF_SIGNED                                      
+          value: "true"                                              

--- a/kubernetes/gitlab-svc.yml
+++ b/kubernetes/gitlab-svc.yml
@@ -8,10 +8,10 @@ spec:
   type: LoadBalancer
   ports:
     - name: http
-      port: 80
+      port: 10443
       targetPort: http
     - name: ssh
-      port: 22
+      port: 10022
       targetPort: ssh
   selector:
     name: gitlab

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with master/kubernetes/deploy.sh and inspect the changes in kubernetes/gitlab-rc.yml and kubernetes/gitlab-svc.yml, then check why the pod restarts when HTTPS is enabled. Done means the Kubernetes deployment remains running and HTTPS is reachable through the configured service port.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes
Domain
infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.