Skip to content

Commit

Permalink
Documentation updated by vania-pooh
Browse files Browse the repository at this point in the history
  • Loading branch information
aandryashin committed Aug 2, 2018
1 parent b08ac31 commit f614ce9
Show file tree
Hide file tree
Showing 8 changed files with 3,079 additions and 0 deletions.
446 changes: 446 additions & 0 deletions 1.1.4/files/browsers.json

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions 1.1.4/files/moon-api.yaml
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
8 changes: 8 additions & 0 deletions 1.1.4/files/moon-config/service.json
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"
}
}
186 changes: 186 additions & 0 deletions 1.1.4/files/moon-openshift.yaml
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
20 changes: 20 additions & 0 deletions 1.1.4/files/moon-sessions.yaml
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
49 changes: 49 additions & 0 deletions 1.1.4/files/moon.yaml
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
Binary file added 1.1.4/img/architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f614ce9

Please sign in to comment.