mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 00:09:22 +00:00
### **User description**
updated statefulset.yaml with o2cr.ai/openobserve
___
### **PR Type**
Enhancement
___
### **Description**
- Switch OpenObserve container image to new registry
___
<details> <summary><h3> File Walkthrough</h3></summary>
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Configuration
changes</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>statefulset.yaml</strong><dd><code>Update OpenObserve
image registry path</code>
</dd></summary>
<hr>
deploy/k8s/statefulset.yaml
<ul><li>Replaced <code>public.ecr.aws/zinclabs/openobserve:latest</code>
image<br> reference <br>with new registry<br> <li> Now uses
<code>o2cr.ai/openobserve/openobserve:latest</code></ul>
</details>
</td>
<td><a
href="https://github.com/openobserve/openobserve/pull/7749/files#diff-b7427b97c324a26e57eee30cfb5a659cf40e231f0299ac51bb70ddea5c24016e">+1/-1</a>
</td>
</tr>
</table></td></tr></tr></tbody></table>
</details>
___
81 lines
1.7 KiB
YAML
81 lines
1.7 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: openobserve
|
|
namespace: openobserve
|
|
spec:
|
|
clusterIP: None
|
|
selector:
|
|
app: openobserve
|
|
ports:
|
|
- name: http
|
|
port: 5080
|
|
targetPort: 5080
|
|
|
|
---
|
|
|
|
# create statefulset
|
|
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: openobserve
|
|
namespace: openobserve
|
|
labels:
|
|
name: openobserve
|
|
spec:
|
|
serviceName: openobserve
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
name: openobserve
|
|
app: openobserve
|
|
template:
|
|
metadata:
|
|
labels:
|
|
name: openobserve
|
|
app: openobserve
|
|
spec:
|
|
securityContext:
|
|
fsGroup: 2000
|
|
runAsUser: 10000
|
|
runAsGroup: 3000
|
|
runAsNonRoot: true
|
|
# terminationGracePeriodSeconds: 0
|
|
containers:
|
|
- name: openobserve
|
|
image: o2cr.ai/openobserve/openobserve:latest
|
|
env:
|
|
- name: ZO_ROOT_USER_EMAIL
|
|
value: root@example.com
|
|
- name: ZO_ROOT_USER_PASSWORD
|
|
value: Complexpass#123
|
|
- name: ZO_DATA_DIR
|
|
value: /data
|
|
# command: ["/bin/bash", "-c", "while true; do sleep 1; done"]
|
|
imagePullPolicy: Always
|
|
resources:
|
|
limits:
|
|
cpu: 4096m
|
|
memory: 2048Mi
|
|
requests:
|
|
cpu: 256m
|
|
memory: 50Mi
|
|
ports:
|
|
- containerPort: 5080
|
|
name: http
|
|
volumeMounts:
|
|
- name: data
|
|
mountPath: /data
|
|
volumeClaimTemplates:
|
|
- metadata:
|
|
name: data
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
# storageClassName: default
|
|
# NOTE: You can increase the storage size
|
|
resources:
|
|
requests:
|
|
storage: 10Gi
|
|
|