forked from sameersbn/docker-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kubernetes: added sample controller and service description files
- Loading branch information
Sameer Naik
committed
Sep 14, 2015
1 parent
9389cf0
commit c66977a
Showing
6 changed files
with
194 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
name: gitlab | ||
labels: | ||
name: gitlab | ||
spec: | ||
replicas: 1 | ||
selector: | ||
name: gitlab | ||
template: | ||
metadata: | ||
labels: | ||
name: gitlab | ||
spec: | ||
containers: | ||
- name: gitlab | ||
image: sameersbn/gitlab:7.14.3 | ||
env: | ||
- name: TZ | ||
value: Asia/Kolkata | ||
- name: GITLAB_TIMEZONE | ||
value: Kolkata | ||
|
||
- name: GITLAB_HOST | ||
value: git.example.com | ||
- name: GITLAB_PORT | ||
value: "80" | ||
- name: GITLAB_SSH_PORT | ||
value: "22" | ||
|
||
- name: GITLAB_EMAIL | ||
value: [email protected] | ||
- name: GITLAB_EMAIL_REPLY_TO | ||
value: [email protected] | ||
|
||
- name: GITLAB_BACKUPS | ||
value: daily | ||
- name: GITLAB_BACKUP_TIME | ||
value: 01:00 | ||
|
||
- name: DB_TYPE | ||
value: postgres | ||
- name: DB_HOST | ||
value: postgresql | ||
- name: DB_PORT | ||
value: "5432" | ||
- name: DB_USER | ||
value: gitlab | ||
- name: DB_PASS | ||
value: passw0rd | ||
- name: DB_NAME | ||
value: gitlab_production | ||
|
||
- name: REDIS_HOST | ||
value: redis | ||
- name: REDIS_PORT | ||
value: "6379" | ||
|
||
- name: SMTP_ENABLED | ||
value: "false" | ||
- name: SMTP_DOMAIN | ||
value: www.example.com | ||
- name: SMTP_HOST | ||
value: smtp.gmail.com | ||
- name: SMTP_PORT | ||
value: "587" | ||
- name: SMTP_USER | ||
value: [email protected] | ||
- name: SMTP_PASS | ||
value: password | ||
- name: SMTP_STARTTLS | ||
value: "true" | ||
- name: SMTP_AUTHENTICATION | ||
value: login | ||
ports: | ||
- name: http | ||
containerPort: 80 | ||
protocol: TCP | ||
- name: ssh | ||
containerPort: 22 | ||
protocol: TCP | ||
livenessProbe: | ||
httpGet: | ||
path: / | ||
port: 80 | ||
initialDelaySeconds: 300 | ||
timeoutSeconds: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: gitlab | ||
labels: | ||
name: gitlab | ||
spec: | ||
type: LoadBalancer | ||
ports: | ||
- name: http | ||
port: 80 | ||
targetPort: 80 | ||
protocol: TCP | ||
- name: ssh | ||
port: 22 | ||
targetPort: 22 | ||
protocol: TCP | ||
selector: | ||
name: gitlab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
name: postgresql | ||
labels: | ||
name: postgresql | ||
spec: | ||
replicas: 1 | ||
selector: | ||
name: postgresql | ||
template: | ||
metadata: | ||
labels: | ||
name: postgresql | ||
spec: | ||
containers: | ||
- name: postgresql | ||
image: sameersbn/postgresql:9.4-4 | ||
env: | ||
- name: DB_USER | ||
value: gitlab | ||
- name: DB_PASS | ||
value: passw0rd | ||
- name: DB_NAME | ||
value: gitlab_production | ||
ports: | ||
- containerPort: 5432 | ||
protocol: TCP | ||
livenessProbe: | ||
TCPSocket: | ||
port: 5432 | ||
initialDelaySeconds: 30 | ||
timeoutSeconds: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: postgresql | ||
labels: | ||
name: postgresql | ||
spec: | ||
type: LoadBalancer | ||
ports: | ||
- port: 5432 | ||
targetPort: 5432 | ||
protocol: TCP | ||
selector: | ||
name: postgresql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: v1 | ||
kind: ReplicationController | ||
metadata: | ||
name: redis | ||
labels: | ||
name: redis | ||
spec: | ||
replicas: 1 | ||
selector: | ||
name: redis | ||
template: | ||
metadata: | ||
labels: | ||
name: redis | ||
spec: | ||
containers: | ||
- name: redis | ||
image: sameersbn/redis | ||
ports: | ||
- containerPort: 6379 | ||
protocol: TCP | ||
livenessProbe: | ||
TCPSocket: | ||
port: 6379 | ||
initialDelaySeconds: 30 | ||
timeoutSeconds: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: redis | ||
labels: | ||
name: redis | ||
spec: | ||
type: LoadBalancer | ||
ports: | ||
- port: 6379 | ||
targetPort: 6379 | ||
protocol: TCP | ||
selector: | ||
name: redis |