Apply the script:
kubectl apply -f https://gist.githubusercontent.com/pbochynski/059a9c2308c764d1991b45855083343c/raw/nginx-with-config-map.yaml
Start kubernetes proxy:
kubectl proxy
Open the web application:
Apply the script:
kubectl apply -f https://gist.githubusercontent.com/pbochynski/059a9c2308c764d1991b45855083343c/raw/nginx-with-config-map.yaml
Start kubernetes proxy:
kubectl proxy
Open the web application:
This is the simple test for broadcast communication between to Technic Hubs (you can change it to City Hub Essential Hub, Inventor Hub, or Prime Hub).
Steps:
from pybricks.hubs import TechnicHub
Integrated stack of the best cloud-native projects for running modern microservice or serverless applications on top of Kubernetes, including Istio, Kiali, Prometheus, Grafana, Jaeger, Knative, Ory Hydra, and Loki. Kyma comes with a new lightweight service catalog you can use to easily connect hyperscaler's services (Azure, GCP, AWS) and SAP applications.
Requirements: minimal cluster size: 2 nodes (4 CPU and 16GB each), recommended (3-5 nodes).
You can find a link to Kyma management console UI and credentials in the shoot cluster dashboard. Learn more: https://kyma-project.io/. Duscuss and get help from Kyma community: http://slack.kyma-project.io/
Create a Kyma cluster. By default, GKE uses the Ephemeral IPs. The best option is to use the Cloud NAT together with GKE to get the static IP.
But for demo purpose, the easiest way for me was to disable the auto-scaling and change IP of each VM instance from the existing node pool to Static. (non-production option!)
Visit the Google Kubernetes Engine in GCP Console.
Choose the cluster and its node pool and click its Edit button, which looks like a pencil.
const Sentiment = require('sentiment'); | |
const sentiment = new Sentiment(); | |
const axios = require("axios"); | |
module.exports = { | |
main: async function (event, context) { | |
let status = "hold"; | |
console.log("Event data: %s",JSON.stringify(event.data)); | |
let comment = await getComment(event.data.commentId); | |
console.log("Comment: %s",comment.content.raw); |
# Set ENV variables. See sample values in comments: | |
export KYMA_VERSION={KYMA_RELEASE_VERSION} # 1.2.0 | |
export CLUSTER_NAME={CLUSTER_NAME_YOU_WANT} # kyma-cluster | |
export GCP_PROJECT={YOUR_GCP_PROJECT} # myproject | |
export GCP_ZONE={GCP_ZONE_TO_DEPLOY_TO} # europe-west1-b | |
# Create a cluster | |
gcloud container --project "$GCP_PROJECT" clusters \ | |
create "$CLUSTER_NAME" --zone "$GCP_ZONE" \ | |
--cluster-version "1.12" --machine-type "n1-standard-4" \ |
Go to your IAS tenant admin page: https://mytenant.accounts.ondemand.com/admin
Go to Applications & Resources -> Tenant Settings -> OpenID Connect Configuration, and select the Name value from a dropdown list. Choose the one starting with https.
Go to Applications & Resources -> Applications and add new Application. Name it (e.g. kyma) and configure it:
email
(not mail
), and First Name to name