Git Product home page Git Product logo

math's Introduction

Django + Celery on Okteto Demo

Prerequisites

  • Okteto CLI >= 1.8.17. Follow this guide to upgrade to the latest version.

Overview

This example shows how to leverage Okteto to develop a Django + Celery Sample App directly on Kubernetes. The Django + Celery Sample App is deployed using raw Kubernetes manifests.

This is the application used for the How to Develop a Django + Celery app in Kubernetes blog post.

math's People

Contributors

nitishfy avatar pchico83 avatar rberrelleza avatar

Stargazers

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

Watchers

 avatar  avatar

math's Issues

Celery worker cannot connect

Here are some of the logs:

worker-okteto-55cdf55f5d-zpbrzworker[2022-05-19 13:35:26,740: ERROR/MainProcess] consumer: Cannot connect to amqp://admin:**@queue:5672//: [Errno 111] Connection refused.
worker-okteto-55cdf55f5d-zpbrzworker Trying again in 18.00 seconds...

Python error when running "okteto up"

Followed the instructions here: https://www.okteto.com/blog/develop-django-celery-app-in-kubernetes/

When I ran the "okteto up" command, after selecting the correct Kubernetes context, it throws a Python error about importing Celery.

I'm running okteto against a 3-node K3s cluster. The "kubectl apply -f manifests" command succeeded, and all of the resources are green in the Kubernetes Dashboard. However, once I get the error with "okteto up", the "worker" resources go red in the Kubernetes Dashboard.

Versions:

$ okteto version
okteto version 2.21.0

$ k3s --version
k3s version v1.26.4+k3s1 (8d0255af)
go version go1.19.8

Output of "okteto up" command attached.
out.txt

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.