8000 Updates for running against a k8s cluster by Shillaker · Pull Request #611 · faasm/faasm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Updates for running against a k8s cluster #611

New issue

Have a question about th 8000 is project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions docker-compose-k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,30 @@ services:
environment:
- LD_LIBRARY_PATH=/build/faasm/third-party/lib:/usr/local/lib
volumes:
- ./faasm.ini:/root/.config/faasm.ini
- ./:/usr/local/code/faasm/
- ./dev/faasm/build:/build/faasm/
- ./dev/faasm-local:/usr/local/faasm
- ${FAASM_BUILD_DIR}:${FAASM_BUILD_MOUNT}
- ./dev/faasm-local/:${FAASM_LOCAL_MOUNT}
- ${CONAN_CACHE_MOUNT_SOURCE}:/root/.conan

cpp-cli:
image: ${CPP_CLI_IMAGE}
working_dir: /code/cpp
network_mode: host
stdin_open: true
tty: true
environment:
- LOG_LEVEL=debug
volumes:
- ./faasm.ini:/root/.config/faasm.ini
- ./clients/cpp:/code/cpp
- ./dev/cpp/build:/build/cpp
- ./dev/faasm-local:/usr/local/faasm
- ./dev/faasm-local/:${FAASM_LOCAL_MOUNT}

python-cli:
image: ${PYTHON_CLI_IMAGE}
working_dir: /code/python
network_mode: host
stdin_open: true
tty: true
environment:
- LOG_LEVEL=debug
volumes:
- ./faasm.ini:/root/.config/faasm.ini
- ./clients/python:/code/python
- ./dev/faasm-local:/usr/local/faasm
- ./dev/faasm-local/:${FAASM_LOCAL_MOUNT}
4 changes: 2 additions & 2 deletions docs/source/kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ docker-compose -f docker-compose-k8s.yml run cpp-cli /bin/bash

# Compile and upload a function
inv func demo hello
inv func.upload demo hello --host=<upload_host>
inv func.upload demo hello

# Invoke the function
inv func.invoke demo hello --host=<invoke_host> --port=<invoke_port>
inv func.invoke demo hello
```

# Troubleshooting
Expand Down
2 changes: 1 addition & 1 deletion faasmcli/faasmcli/tasks/call.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def status(ctx, call_id=None):


@task
def exec_graph(ctx, call_id=None, headless=True, output_file=None):
def exec_graph(ctx, call_id=None, headless=False, output_file=None):
"""
Get the execution graph for the given call ID
"""
Expand Down
2 changes: 1 addition & 1 deletion faasmcli/faasmcli/tasks/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def all_workers(ctx, local=False, docker=False, knative=True):
"""
List all available Faasm instances
"""
_do_redis_command("smembers available_faaslets", local, docker, knative)
_do_redis_command("smembers available_hosts", local, docker, knative)


@task
Expand Down
0