This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import flask | |
from flask import request, jsonify | |
import logging | |
import ansible_runner | |
import urllib | |
import requests | |
import json | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import flask | |
from flask import request, jsonify | |
import logging | |
import ansible_runner | |
import urllib | |
import requests | |
import json | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# This playbook prints a simple debug message | |
- name: Echo | |
hosts: localhost | |
connection: local | |
tasks: | |
- name: Print debug message | |
debug: | |
msg: Hello, world! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
appsody deploy --knative --no-operator-check --no-operator-install | |
Found deployment manifest /tmp/mynodefunc/app-deploy.yaml | |
Using namespace default for deployment | |
Building the production image | |
Extracting project from development environment | |
Pulling docker image quay.io/boson/node-ce-functions:0.0 | |
Running command: docker pull quay.io/boson/node-ce-functions:0.0 | |
0.0: Pulling from boson/node-ce-functions | |
Digest: sha256:82df1b4925e02f4822a96c68cf8c90bd6d05664156c2a9e598a9d490f4a10e9a | |
Status: Image is up to date for quay.io/boson/node-ce-functions:0.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
cloudevents "github.com/cloudevents/sdk-go" | |
"knative.dev/eventing-contrib/pkg/kncloudevents" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update service | |
kn service update store-app --image=markito/store-app:v2 --requests-memory=300Mi --concurrency-limit=10 --env PAYMENT_SERVICE="http://payment-service.rhte-live.apps.rhte19.markito.org/" | |
# List revisions | |
kn revisions list | |
# Change traffic | |
kn service update store-app --traffic store-app-yhxwl-5=50,store-app-pymxh-4=50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Demo Notes | |
## Container images | |
- markito/kiosk:v1 | |
- markito/payment-service:v1 | |
- markito/store-app:v1 | |
## Create Kiosk Service (Generate QR Codes) | |
kn service create kiosk --image=markito/kiosk:v1 --requests-memory=100Mi --concurrency-limit=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oc describe pods/kafka-controller-manager-0 -n knative-sources | |
Name: kafka-controller-manager-0 | |
Namespace: knative-sources | |
Priority: 0 | |
PriorityClassName: <none> | |
Node: ip-10-0-141-102.us-west-2.compute.internal/10.0.141.102 | |
Start Time: Thu, 25 Jul 2019 17:13:14 -0500 | |
Labels: control-plane=kafka-controller-manager | |
controller-revision-hash=kafka-controller-manager-79cf79ffdf | |
statefulset.kubernetes.io/pod-name=kafka-controller-manager-0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"level":"info","ts":1559751980.2934012,"logger":"cmd","msg":"Go Version: go1.11.4"} | |
{"level":"info","ts":1559751980.293458,"logger":"cmd","msg":"Go OS/Arch: linux/amd64"} | |
{"level":"info","ts":1559751980.2934654,"logger":"cmd","msg":"Version of operator-sdk: v0.8.0"} | |
{"level":"info","ts":1559751980.2940812,"logger":"leader","msg":"Trying to become the leader."} | |
{"level":"info","ts":1559751980.4190128,"logger":"leader","msg":"No pre-existing lock was found."} | |
{"level":"info","ts":1559751980.4245596,"logger":"leader","msg":"Became the leader."} | |
{"level":"info","ts":1559751980.5175602,"logger":"cmd","msg":"Registering Components."} | |
{"level":"info","ts":1559751980.5177436,"logger":"manifestival","msg":"Reading file","name":"https://raw.githubusercontent.com/openshift/knative-serving/release-v0.6.0/openshift/release/knative-serving-v0.6.0.yaml"} | |
{"level":"info","ts":1559751980.724199,"logger":"kubebuilder.controller","msg":"Starting EventSource","controller":"knativeserving-controller","source":"kind source: /, Ki |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: serving.knative.dev/v1alpha1 | |
kind: Service | |
metadata: | |
annotations: | |
serving.knative.dev/creator: kube:admin | |
serving.knative.dev/lastModifier: kube:admin | |
creationTimestamp: 2019-05-03T13:25:40Z | |
generation: 4 | |
name: quarkus-decoder | |
namespace: markito |