jnsgruk / hello-kubecon Goto Github PK
View Code? Open in Web Editor NEWA Charmed Operator demonstration for Operator Day 2021, hosted by Canonical
License: Apache License 2.0
A Charmed Operator demonstration for Operator Day 2021, hosted by Canonical
License: Apache License 2.0
Currently the charm can end up stuck in a waiting state if pebble-ready fires after config-changed. See below for details.
mthaddon@finistere:~/repos/k8s-charms/hello-kubecon/hello-kubecon$ juju debug-log --no-tail --replay| grep ' ran '
unit-hello-kubecon-0: 11:22:24 INFO juju.worker.uniter.operation ran "install" hook (via hook dispatching script: dispatch)
unit-hello-kubecon-0: 11:22:24 INFO juju.worker.uniter.operation ran "ingress-relation-created" hook (via hook dispatching script: dispatch)
unit-hello-kubecon-0: 11:22:25 INFO juju.worker.uniter.operation ran "leader-elected" hook (via hook dispatching script: dispatch)
unit-hello-kubecon-0: 11:22:25 INFO juju.worker.uniter.operation ran "webroot-storage-attached" hook (via hook dispatching script: dispatch)
unit-hello-kubecon-0: 11:22:25 INFO juju.worker.uniter.operation ran "config-changed" hook (via hook dispatching script: dispatch)
unit-hello-kubecon-0: 11:22:26 INFO juju.worker.uniter.operation ran "start" hook (via hook dispatching script: dispatch)
unit-nginx-ingress-integrator-0: 11:22:26 INFO juju.worker.uniter.operation ran "install" hook (via hook dispatching script: dispatch)
unit-hello-kubecon-0: 11:22:26 INFO juju.worker.uniter.operation ran "ingress-relation-joined" hook (via hook dispatching script: dispatch)
unit-nginx-ingress-integrator-0: 11:22:26 INFO juju.worker.uniter.operation ran "ingress-relation-created" hook (via hook dispatching script: dispatch)
unit-hello-kubecon-0: 11:22:27 INFO juju.worker.uniter.operation ran "ingress-relation-changed" hook (via hook dispatching script: dispatch)
unit-nginx-ingress-integrator-0: 11:22:27 INFO juju.worker.uniter.operation ran "leader-elected" hook (via hook dispatching script: dispatch)
unit-nginx-ingress-integrator-0: 11:22:27 INFO juju.worker.uniter.operation ran "config-changed" hook (via hook dispatching script: dispatch)
unit-hello-kubecon-0: 11:22:28 INFO juju.worker.uniter.operation ran "gosherve-pebble-ready" hook (via hook dispatching script: dispatch)
unit-nginx-ingress-integrator-0: 11:22:28 INFO juju.worker.uniter.operation ran "start" hook (via hook dispatching script: dispatch)
unit-nginx-ingress-integrator-0: 11:22:29 INFO juju.worker.uniter.operation ran "ingress-relation-changed" hook (via hook dispatching script: dispatch)
unit-hello-kubecon-0: 11:22:29 INFO juju.worker.uniter.operation ran "ingress-relation-changed" hook (via hook dispatching script: dispatch)
unit-nginx-ingress-integrator-0: 11:22:29 INFO juju.worker.uniter.operation ran "ingress-relation-joined" hook (via hook dispatching script: dispatch)
unit-nginx-ingress-integrator-0: 11:22:30 INFO juju.worker.uniter.operation ran "ingress-relation-changed" hook (via hook dispatching script: dispatch)
mthaddon@finistere:~/repos/k8s-charms/hello-kubecon/hello-kubecon$ juju status
Model Controller Cloud/Region Version SLA Timestamp
ing-test microk8s-localhost microk8s/localhost 3.0.0 unsupported 11:27:14+01:00
App Version Status Scale Charm Channel Rev Address Exposed Message
hello-kubecon waiting 1 hello-kubecon stable 14 10.152.183.132 no installing agent
nginx-ingress-integrator active 1 nginx-ingress-integrator stable 37 10.152.183.25 no Ingress with service IP(s): 10.152.183.59
Unit Workload Agent Address Ports Message
hello-kubecon/0* waiting idle 10.1.129.141 waiting for Pebble in workload container
nginx-ingress-integrator/0* active idle 10.1.129.139 Ingress with service IP(s): 10.152.183.59
Hi!
Just a minor comment for the README.md
file:
While sections Quickstart
, Build and Deploy Locally
call for the creation of a Juju model named dev
, the Development Setup
section mentions a model named development
.
https://github.com/jnsgruk/hello-kubecon/blob/master/src/charm.py#L100-L110
urlretrieve
method fails when the charm is deployed behind a proxy
Hey Jon, quick nitpick in case it helps your new users. Thanks for the tutorial.
Under Build and Deploy Locally and Quickstart in the README:
You should be able to visit http://hellokubecon.juju in your browser.
The previous instructions deploy to http://hello-kubecon
Based on falling back to the app name due to no external hostname set and then running
# Add an entry to /etc/hosts
$ echo "127.0.1.1 hello-kubecon" | sudo tee -a /etc/hosts
(PR: #7 )
Alternatively, update external hostname to "hellokubecon.juju"
and change readme to:
# Add an entry to /etc/hosts
$ echo "127.0.1.1 hellokubecon.juju" | sudo tee -a /etc/hosts
which would be more consistent with your tutorial/slides. lmk if you'd prefer that, happy to spin up a quick pr.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.