Improve certificate generation.
This commit is contained in:
56
test/gitlab.yaml
Normal file
56
test/gitlab.yaml
Normal file
@@ -0,0 +1,56 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: gitlab
|
||||
labels:
|
||||
run: gitlab
|
||||
spec:
|
||||
type: NodePort
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
protocol: TCP
|
||||
name: http
|
||||
- port: 443
|
||||
protocol: TCP
|
||||
name: https
|
||||
- port: 22
|
||||
protocol: TCP
|
||||
name: ssh
|
||||
selector:
|
||||
run: gitlab
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: gitlab
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: busybox
|
||||
containers:
|
||||
- image: gitlab/gitlab-ce:latest
|
||||
name: gitlab-container
|
||||
ports:
|
||||
- containerPort: 80
|
||||
- containerPort: 22
|
||||
- containerPort: 443
|
||||
volumeMounts:
|
||||
- mountPath: /etc/gitlab
|
||||
name: gitlab-data
|
||||
subPath: config
|
||||
- mountPath: /var/log/gitlab
|
||||
name: gitlab-data
|
||||
subPath: logs
|
||||
- mountPath: /var/opt/gitlab
|
||||
name: gitlab-data
|
||||
subPath: data
|
||||
volumes:
|
||||
- name: gitlab-data
|
||||
nfs:
|
||||
server: 10.253.10.103
|
||||
path: /data/gitlab
|
||||
ReadOnly: false
|
||||
Reference in New Issue
Block a user