Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
comp90024
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mu Lu
comp90024
Commits
5409ea29
Commit
5409ea29
authored
1 year ago
by
Luca Morandini
Browse files
Options
Downloads
Patches
Plain Diff
- Corrected typos
- Mentioned RedisInsight
parent
64f3711b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fission/README.md
+29
-5
29 additions, 5 deletions
fission/README.md
with
29 additions
and
5 deletions
fission/README.md
+
29
−
5
View file @
5409ea29
...
...
@@ -9,7 +9,7 @@
*
"KUBECONFIG" environment variable set (see above)
## Install Fission FaaS on the Cluster
## Install Fission FaaS
, Keda, and Redis
on the Cluster
```
shell
export
FISSION_VERSION
=
'1.20.0'
...
...
@@ -27,16 +27,20 @@ helm upgrade redis-operator ot-helm/redis-operator --install --namespace ot-oper
helm upgrade redis ot-helm/redis
--install
--namespace
ot-operators
```
[
Detailed instructions
](
https://fission.io/docs/installation/
)
Wait for all pods to have started:
```
shell
k get pods
-n
fission
```
Wait for the external IP address to be assigned:
Wait for the external IP address to be assigned
(wait until is no longer "pending")
:
```
shell
k get svc
-n
fission |
grep
router
```
## Install Fission FaaS Client on your Laptop
Mac:
...
...
@@ -89,13 +93,13 @@ f function test --name health | jq '.'
Create an ingress so that the function can be accessed from outside the cluster:
```
shell
f route create
--url
/health
--function
./functions/
health
--createingress
f route create
--url
/health
--function
health
--createingress
```
Grab the IP address of the router and send a request:
```
shell
IP
=
$(
k get svc
-n
fission |
grep
router |
tr
-s
" "
|
cut
-f
4
-d
' '
)
curl
"http://
${
IP
}
/health"
-vvv
curl
"http://
${
IP
}
/health"
| jq
'.'
```
`
...
...
@@ -127,8 +131,8 @@ Local access to the Redis API:
```shell
k port-forward service/redis-headless -n ot-operators 6379:6379
```
(This port can be used to peek inside Redis by using a management application like (RedisInsight)[https://redis.io/docs/connect/insight/].)
```
The function used so far are very simple and do not require any additional Python libraries: let's
see how we can pack libraries together with a function source code.
...
...
@@ -229,6 +233,14 @@ f mqtrigger create --name weather-ingest\
```
## Remove Fission FaaS from the Cluster
```
shell
helm uninstall fission
kubectl delete -k "github.com/fission/fission/crds/v1?ref=v${FISSION_VERSION}"
```
## Harvest Data from the Bureau of Meteorology
List of stations:
...
...
@@ -238,3 +250,15 @@ Single station observations:
http://reg.bom.gov.au/fwo/IDV60901/IDV60901.95936.json
## Air Quality observations:
```
shell
curl -XGET -G "https://naqd.eresearch.unimelb.edu.au/geoserver/wfs"
\
--data-urlencode service='WFS'
\
--data-urlencode version='2.0.0'
\
--data-urlencode request='GetFeature'
\
--data-urlencode typeName='geonode:vic_observations_2023'
\
--data-urlencode outputFormat='application/json'
\
--data-urlencode cql_filter="site_name='Mildura' and time_stamp>=2023-07-11T00:00:00Z and time_stamp<2023-07-12T00:00:00Z"
\
| jq '.'
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment