-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The simultaneous use of one's own image in the build of Python functions does not take effect #145
Comments
Please provide the whole function yaml including the status, and also provide the serving yaml. |
apiVersion: core.openfunction.io/v1beta1 [pod/builder-jkftd-buildrun-hgjf8-tzc9d-pod/prepare] 2023/11/10 08:41:23 Entrypoint initialization |
This is a complete yaml file of function. Please provide a complete yaml file of your function. And a complete yaml file of the serving.
|
@wanjunlei Name: test--testtpy |
The |
So, do you mean that after starting this function, I didn't use this image when it really works? "RUN_IMAGE" just published a basic image, but it wasn't used when starting the function, right? I just want to use my own image when starting Python functions, because there are some files in my own image that my functions need to use. How can I declare this yaml? Could you please give me some guidance and send me a sample |
I do not understand what you say. OpenFunction will build the image |
@wanjunlei |
Hello, when I used the description of openfunction to deploy a Python function as a service, I wanted to use my own image (which contains some data files), but when I declared spec build params RUN_ After IMAGE, the generated pod did not use the image I declared. Is there any problem with the declared image? It's quite urgent, online, etc
你好,我使用openfunction的描述去部署一个python函数为服务时,希望使用我自己的一个镜像(镜像里面有一些数据文件),但是在我声明了spec build params RUN_IMAGE后,生成的pod并没有使用我声明的镜像,是声明的有什么问题吗,挺急的,在线等
apiVersion: core.openfunction.io/v1beta1
kind: Function
metadata:
namespace: "abc"
name: "test--testtpy"
spec:
version: "v2.0.0"
image: "172.16.xxx.xxx:81/abc/test--testtpy:v2"
imageCredentials:
name: push-secret
port: 8080
build:
builder: "openfunction/gcp-builder:v1"
env:
GOOGLE_FUNCTION_TARGET: "hello_world"
GOOGLE_FUNCTION_SIGNATURE_TYPE: "http"
GOOGLE_FUNCTION_SOURCE: "main.py"
params:
RUN_IMAGE: "172.16.xxx.xxx:81/zhikong/ubuntu-20.04.4lts-block-inner:v2"
srcRepo:
url: "[email protected]:abc/test.git"
sourceSubPath: "/testtpy"
revision: "main"
credentials:
name: secret-git-ssh-auth2
serving:
scaleOptions:
minReplicas: 1
maxReplicas: 10
runtime: "knative"
template:
containers:
- name: function # DO NOT change this
imagePullPolicy: IfNotPresent
route:
gatewayRef:
name: openfunction
namespace: openfunction
rules:
- matches:
- path:
type: PathPrefix
value: "/faas/xxx/test/tt/py"
The text was updated successfully, but these errors were encountered: