| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /*
- Copyright 2026 LocoStack.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- */
- package phoenix
- import (
- "github.com/LocoStack/loco-operator/api/v1alpha1"
- corev1 "k8s.io/api/core/v1"
- )
- const (
- PHOENIX_DATA_PATH = "/data"
- )
- var PhoenixTemplate = v1alpha1.Template{
- Name: "phoenix",
- Spec: v1alpha1.TemplateSpec{
- Runtime: v1alpha1.RuntimeSpec{
- Name: "phoenix",
- Image: "arizephoenix/phoenix:version-17.12.0",
- Command: []string{
- "python",
- },
- Args: []string{
- "-m", "phoenix.server.main", "serve",
- },
- Env: []corev1.EnvVar{
- {
- Name: "PHOENIX_WORKING_DIR",
- Value: PHOENIX_DATA_PATH,
- },
- {
- Name: "PHOENIX_PORT",
- Value: "$(spec.runtime.port)",
- },
- },
- VolumeMounts: []corev1.VolumeMount{
- {Name: "data", MountPath: PHOENIX_DATA_PATH},
- },
- Port: 6006,
- },
- Volumes: []corev1.Volume{
- {
- Name: "data",
- VolumeSource: corev1.VolumeSource{
- PersistentVolumeClaim: &corev1.PersistentVolumeClaimVolumeSource{
- ClaimName: "$(metadata.name)-phoenix",
- },
- },
- },
- },
- },
- }
|