SAP Kyma的Lambda Function describe命令输出

108 阅读1分钟

Name: zjerry-wordpress-enh
Namespace: ctu-demo
Labels: app=zjerry-wordpress-enh
Annotations: function-size: S
servicebindingusages.servicecatalog.kyma-project.io/tracing-inf…
{“nngygqyoqk”:{“injectedLabels”:{“app-ctu-jerry-wordpress-107b42f7-6d95-4aef-b769-332391cd28a8”:“true”,"use-3334f3e0-b023-11e9-bad5-42010a…
API Version: kubeless.io/v1beta1
Kind: Function
Metadata:
Creation Timestamp: 2019-07-27T04:01:23Z
Finalizers:
kubeless.io/function
Generation: 1
Resource Version: 8180265
Self Link: /apis/kubeless.io/v1beta1/namespaces/ctu-demo/functions/zjerry-wordpress-enh
UID: 32bc8829-b023-11e9-bad5-42010a8400b9
Spec:
Checksum: sha256:0e74966d024a5da4f1b35c7acbd5a85aad697a1e919e13f7eea0eb72bd0765bb
Deployment:
Metadata:
Creation Timestamp:
Spec:
Replicas: 1
Strategy:
Template:
Metadata:
Creation Timestamp:
Labels:
app-ctu-jerry-wordpress-107b42f7-6d95-4aef-b769-332391cd28a8: true
use-3334f3e0-b023-11e9-bad5-42010a8400b9: 6827545
Spec:
Containers:
Name: zjerry-wordpress-enh
Resources:
Limits:
Cpu: 100m
Memory: 128Mi
Requests:
Cpu: 100m
Memory: 100Mi
Status:
Deps: {
“name”: “app”,
“version”: “0.0.1”,
“dependencies”: {
“axios”: “^0.18.0”
}
}
Function: const axios = require(‘axios’);

module.exports = { main: function (event, context) {
var dataFromWordPress = JSON.stringify(event.data);
console.log("Jerry received data from WordPress: " + dataFromWordPress);
var url = “http://localhost:3000/weibo?textFromKyma=” + dataFromWordPress;

axios.get(url).then(function (response) {
    console.log("response in Lambda:" + response.data);
});

} }
Function - Content - Type: text
Handler: handler.main
Horizontal Pod Autoscaler:
Metadata:
Creation Timestamp:
Labels:
Function: zjerry-wordpress-enh
Name: zjerry-wordpress-enh
Namespace: ctu-demo
Spec:
Max Replicas: 2
Metrics:
Resource:
Name: cpu
Target Average Utilization: 50
Type: Resource
Min Replicas: 1
Scale Target Ref:
API Version: apps/v1beta1
Kind: Deployment
Name: zjerry-wordpress-enh
Status:
Conditions:
Current Metrics:
Current Replicas: 0
Desired Replicas: 0
Runtime: nodejs8
Service:
Ports:
Name: http-function-port
Port: 8080
Protocol: TCP
Target Port: 8080
Selector:
Created - By: kubeless
Function: zjerry-wordpress-enh
Timeout:
Topic: post.published
Events: