GithubHelp home page GithubHelp logo

seldonio / ansible-k8s-collection Goto Github PK

View Code? Open in Web Editor NEW
8.0 12.0 11.0 316 KB

Collection of Ansible roles and playbooks crafted for Seldon ecosystem

License: Apache License 2.0

Jinja 99.99% Makefile 0.01%

ansible-k8s-collection's Introduction

⏳ ansible-tools

Collection of Ansible roles and playbooks crafted for Seldon ecosystem

⚠️ NOTE: This is work in progress

⚠️ To configure ecosystem for Seldon Core follow instructions for Core v1 or Core v2 directly.

Requirements

To install Ansible and its requirements:

pip install ansible openshift docker passlib
ansible-galaxy collection install git+https://github.com/SeldonIO/ansible-k8s-collection.git

Playbooks

/playbooks/kind.yaml

Creates Kind cluster and sets up MetalLB

Components:

  • Create a kind cluster
  • Install metallb
ansible-playbook playbooks/kind.yaml

/playbooks/seldon_core.yaml

Installs Istio, MinIO and Seldon Core

Components:

  • Install Istio
  • Install Minio
  • Install Seldon Core
ansible-playbook playbooks/seldon_core.yaml

ansible-k8s-collection's People

Contributors

agrski avatar majolo avatar michaelcheah avatar rafalskolasinski avatar ukclivecox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ansible-k8s-collection's Issues

Templating fails for ansible

with

ansible==4.2.0
ansible-core==2.11.2

Running the kind playbook fails with:

TASK [metallb : Create MetalLB Config] ***************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "error": "", "msg": "Failed to retrieve requested object: You must provide a body when calling methods on a ResourceList", "reason": "", "status": ""}

kind playbook broken with community.kubernetes 2.0.0

Error:

TASK [metallb : Create MetalLB Config] ******************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "'template' is only supported parameter for 'k8s' module."}

Temporary fix:

ansible-galaxy collection install git+https://github.com/ansible-collections/community.kubernetes,1.2.1

provide default versions for all applications

Some roles, Argo Workflows and ArgoCD for example if I remember right, by default install latest helm charts.
For reproducibility we should explore providing default versions and keep bumping them up on every release.

Keeping a list of tested versions may be useful as well in case that installation procedure of an application will change.

Use global cache location

We should use ~/.cache/seldon/ directory for cached resources.
This is to:

  • possibility to execute playbook without the need to be in directory with inventry.ini file
  • reuse resources from different "working" directories - for example playbooks in core and tempo could reuse same cache

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.