-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b08ac31
commit f614ce9
Showing
8 changed files
with
3,079 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,45 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: moon-api | ||
spec: | ||
selector: | ||
app: moon-api | ||
ports: | ||
- protocol: TCP | ||
port: 8080 | ||
type: NodePort | ||
--- | ||
apiVersion: apps/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: moon-api | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: moon-api | ||
spec: | ||
containers: | ||
- name: moon-api | ||
image: aerokube/moon-api:1.1.4 | ||
resources: | ||
limits: | ||
cpu: "0.25" | ||
memory: "128Mi" | ||
requests: | ||
cpu: "0.1" | ||
memory: "64Mi" | ||
ports: | ||
- containerPort: 8080 | ||
volumeMounts: | ||
- name: quota | ||
mountPath: /quota | ||
volumes: | ||
- name: quota | ||
configMap: | ||
name: quota | ||
- name: users | ||
secret: | ||
secretName: users |
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,8 @@ | ||
{ | ||
"images": { | ||
"videoRecorder": "selenoid/video-recorder", | ||
"defender": "aerokube/defender:devel", | ||
"uploader": "aerokube/uploader:devel", | ||
"logger": "aerokube/logger:devel" | ||
} | ||
} |
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,186 @@ | ||
kind: Template | ||
apiVersion: v1 | ||
metadata: | ||
name: moon | ||
objects: | ||
|
||
- kind: ResourceQuota | ||
apiVersion: v1 | ||
metadata: | ||
name: max-moon-sessions | ||
spec: | ||
hard: | ||
pods: ${MOON_PODS} | ||
|
||
- kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: moon | ||
spec: | ||
selector: | ||
app: moon | ||
ports: | ||
- name: moon | ||
protocol: TCP | ||
port: 4444 | ||
type: NodePort | ||
|
||
- kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: moon-api | ||
spec: | ||
selector: | ||
app: moon-api | ||
ports: | ||
- name: moon-api | ||
protocol: TCP | ||
port: 8080 | ||
type: NodePort | ||
|
||
- kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: moon-ui | ||
spec: | ||
selector: | ||
app: moon-ui | ||
ports: | ||
- name: moon-ui | ||
protocol: TCP | ||
port: 8080 | ||
type: NodePort | ||
|
||
- kind: DeploymentConfig | ||
apiVersion: v1 | ||
metadata: | ||
name: moon | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: moon | ||
spec: | ||
containers: | ||
- name: moon | ||
image: ${MOON_IMAGE} | ||
args: | ||
- '-namespace' | ||
- '${NAMESPACE}' | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: "512Mi" | ||
requests: | ||
cpu: "0.25" | ||
memory: "64Mi" | ||
ports: | ||
- containerPort: 4444 | ||
volumeMounts: | ||
- name: quota | ||
mountPath: /quota | ||
readOnly: true | ||
- name: users | ||
mountPath: /users | ||
readOnly: true | ||
volumes: | ||
- name: quota | ||
configMap: | ||
name: quota | ||
- name: users | ||
secret: | ||
secretName: users | ||
|
||
- kind: DeploymentConfig | ||
apiVersion: v1 | ||
metadata: | ||
name: moon-api | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: moon-api | ||
spec: | ||
containers: | ||
- name: moon-api | ||
image: ${MOON_API_IMAGE} | ||
args: | ||
- '-namespace' | ||
- '${NAMESPACE}' | ||
resources: | ||
limits: | ||
cpu: "0.25" | ||
memory: "128Mi" | ||
requests: | ||
cpu: "0.1" | ||
memory: "64Mi" | ||
ports: | ||
- containerPort: 8080 | ||
volumeMounts: | ||
- name: quota | ||
mountPath: /quota | ||
volumes: | ||
- name: quota | ||
configMap: | ||
name: quota | ||
- name: users | ||
secret: | ||
secretName: users | ||
|
||
- kind: DeploymentConfig | ||
apiVersion: v1 | ||
metadata: | ||
name: moon-ui | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: moon-ui | ||
spec: | ||
containers: | ||
- name: moon-ui | ||
args: | ||
- '--selenoid-uri' | ||
- 'http://moon-api:8080' | ||
image: ${MOON_UI_IMAGE} | ||
ports: | ||
- containerPort: 8080 | ||
protocol: TCP | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 64M | ||
|
||
parameters: | ||
- name: NAMESPACE | ||
displayName: Namespace | ||
description: Namespace where the Moon is running | ||
value: default | ||
required: true | ||
|
||
- name: MOON_IMAGE | ||
displayName: Moon docker image | ||
description: Name of the image to be used. | ||
value: aerokube/moon:latest-release | ||
required: true | ||
|
||
- name: MOON_API_IMAGE | ||
displayName: Moon-API docker image | ||
description: Name of the image to be used. | ||
value: aerokube/moon-api:latest-release | ||
required: true | ||
|
||
- name: MOON_UI_IMAGE | ||
displayName: Moon-UI docker image | ||
description: Name of the image to be used. | ||
value: aerokube/selenoid-ui:latest-release | ||
required: true | ||
|
||
- name: MOON_PODS | ||
displayName: Max moon pods in project | ||
description: Specify max moon pods for project (4 free slots + Moon + Moon API + Moon UI = 7). | ||
value: '7' | ||
required: true |
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,20 @@ | ||
apiVersion: v1 | ||
kind: ResourceQuota | ||
metadata: | ||
name: max-moon-sessions | ||
spec: | ||
hard: | ||
pods: "6" | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: moon-rbac | ||
subjects: | ||
- kind: ServiceAccount | ||
name: default | ||
namespace: default | ||
roleRef: | ||
kind: ClusterRole | ||
name: cluster-admin | ||
apiGroup: rbac.authorization.k8s.io |
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,49 @@ | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: moon | ||
spec: | ||
selector: | ||
app: moon | ||
ports: | ||
- protocol: TCP | ||
port: 4444 | ||
type: NodePort | ||
--- | ||
apiVersion: apps/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: moon | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: moon | ||
spec: | ||
containers: | ||
- name: moon | ||
image: aerokube/moon:1.1.4 | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: "512Mi" | ||
requests: | ||
cpu: "0.25" | ||
memory: "64Mi" | ||
ports: | ||
- containerPort: 4444 | ||
volumeMounts: | ||
- name: quota | ||
mountPath: /quota | ||
readOnly: true | ||
- name: users | ||
mountPath: /users | ||
readOnly: true | ||
volumes: | ||
- name: quota | ||
configMap: | ||
name: quota | ||
- name: users | ||
secret: | ||
secretName: users |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.