Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
okd-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marcones Silva
okd-apps
Commits
83eac97c
Commit
83eac97c
authored
Dec 09, 2021
by
Marcones Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Execicrio cap 7 schedule-scale, arquivo deployment
parent
3b9e9dde
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
114 additions
and
26 deletions
+114
-26
schedule-limit/quota-limits.yaml
schedule-limit/quota-limits.yaml
+0
-18
schedule-scale/curl-route.sh
schedule-scale/curl-route.sh
+11
-0
schedule-scale/loadtest.yaml
schedule-scale/loadtest.yaml
+2
-8
schedule-scale/scaling.yaml
schedule-scale/scaling.yaml
+101
-0
No files found.
schedule-limit/quota-limits.yaml
deleted
100644 → 0
View file @
3b9e9dde
-
apiVersion
:
v1
kind
:
ResourceQuota
metadata
:
name
:
${PROJECT_NAME}-quota
spec
:
hard
:
cpu
:
3
memory
:
10G
-
apiVersion
:
v1
kind
:
LimitRange
metadata
:
name
:
${PROJECT_NAME}-limits
spec
:
limits
:
-
type
:
Container
defaultRequest
:
cpu
:
30m
memory
:
30M
schedule-scale/curl-route.sh
0 → 100755
View file @
83eac97c
#!/usr/bin/bash
if
$(
oc get route/scaling
-n
schedule-scale
-o
jsonpath
=
'{.spec.host}'
&> /dev/null
)
;
then
ROUTE
=
$(
oc get route/scaling
-n
schedule-scale
-o
jsonpath
=
'{.spec.host}'
)
(
for
x
in
{
1..100
}
;
do
curl
-s
http://
${
ROUTE
}
;
done
)
|
sort
|
uniq
-c
else
echo
echo
"Error: Ensure that the 'scaling' route exists in the 'schedule-scale'"
echo
" namespace and then try running this script again."
echo
fi
schedule-
limit
/loadtest.yaml
→
schedule-
scale
/loadtest.yaml
View file @
83eac97c
...
@@ -22,13 +22,7 @@ items:
...
@@ -22,13 +22,7 @@ items:
containers
:
containers
:
-
image
:
quay.io/redhattraining/loadtest:v1.0
-
image
:
quay.io/redhattraining/loadtest:v1.0
name
:
loadtest
name
:
loadtest
resources
:
resources
:
{}
requests
:
cpu
:
"
100m"
memory
:
20M
limits
:
cpu
:
"
500m"
memory
:
200M
status
:
{}
status
:
{}
-
apiVersion
:
v1
-
apiVersion
:
v1
kind
:
Service
kind
:
Service
...
@@ -56,7 +50,7 @@ items:
...
@@ -56,7 +50,7 @@ items:
app
:
loadtest
app
:
loadtest
name
:
loadtest
name
:
loadtest
spec
:
spec
:
host
:
"
loadtest.apps.ocp4.example.com
"
host
:
"
"
port
:
port
:
targetPort
:
8080
targetPort
:
8080
subdomain
:
"
"
subdomain
:
"
"
...
...
schedule-scale/scaling.yaml
0 → 100644
View file @
83eac97c
apiVersion
:
v1
items
:
-
apiVersion
:
apps.openshift.io/v1
kind
:
DeploymentConfig
metadata
:
annotations
:
openshift.io/generated-by
:
OpenShiftNewApp
creationTimestamp
:
null
labels
:
app
:
scaling
name
:
scaling
spec
:
replicas
:
1
selector
:
app
:
scaling
deploymentconfig
:
scaling
strategy
:
resources
:
{}
template
:
metadata
:
annotations
:
openshift.io/generated-by
:
OpenShiftNewApp
creationTimestamp
:
null
labels
:
app
:
scaling
deploymentconfig
:
scaling
spec
:
containers
:
-
image
:
quay.io/redhattraining/scaling:v1.0
name
:
scaling
ports
:
-
containerPort
:
8443
protocol
:
TCP
-
containerPort
:
8080
protocol
:
TCP
resources
:
{}
test
:
false
triggers
:
-
type
:
ConfigChange
-
imageChangeParams
:
automatic
:
true
containerNames
:
-
scaling
from
:
kind
:
ImageStreamTag
name
:
scaling:latest
type
:
ImageChange
status
:
availableReplicas
:
0
latestVersion
:
0
observedGeneration
:
0
replicas
:
0
unavailableReplicas
:
0
updatedReplicas
:
0
-
apiVersion
:
v1
kind
:
Service
metadata
:
annotations
:
openshift.io/generated-by
:
OpenShiftNewApp
creationTimestamp
:
null
labels
:
app
:
scaling
name
:
scaling
spec
:
ports
:
-
name
:
8080-tcp
port
:
8080
protocol
:
TCP
targetPort
:
8080
-
name
:
8443-tcp
port
:
8443
protocol
:
TCP
targetPort
:
8443
selector
:
app
:
scaling
deploymentconfig
:
scaling
status
:
loadBalancer
:
{}
-
apiVersion
:
route.openshift.io/v1
kind
:
Route
metadata
:
annotations
:
openshift.io/host.generated
:
"
true"
labels
:
app
:
scaling
name
:
scaling
namespace
:
schedule-scale
spec
:
host
:
"
"
port
:
targetPort
:
8080-tcp
subdomain
:
"
"
to
:
kind
:
Service
name
:
scaling
weight
:
100
wildcardPolicy
:
None
status
:
ingress
:
null
kind
:
List
metadata
:
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment