Comments (1)
After building the mattermost-operator image locally with --platform=linux/arm64
, it still doesn't seem to work.
After taking a closer look at the build system, I discovered that the binary contained in the docker image was not built for the correct architecture (cf. https://github.com/mattermost/mattermost-operator/blob/master/Makefile#L122).
I made a PR with the corrections available here.
- I built the image with these corrections and pushed it into my personal registry, with the command :
OPERATOR_IMAGE_NAME=registry.ohmlab.fr/library/mattermost-operator OPERATOR_IMAGE_TAG=new-master make buildx-image
Note: The image is available with the command :
docker pull registry.ohmlab.fr/library/mattermost-operator:new-master
- Next, I deployed the operator via Helm with the previously corrected image using the command :
helm upgrade \
--install \
--create-namespace \
--namespace mattermost \
--set-string mattermostOperator.image.repository="registry.ohmlab.fr/library/mattermost-operator" \
--set-string mattermostOperator.image.tag="new-master" \
mattermost-operator mattermost/mattermost-operator
- And it seems to work:
kubectl -n mattermost get pod
NAME READY STATUS RESTARTS AGE
mattermost-operator-56bcbf47bf-hq6jb 1/1 Running 0 58s
kubectl -n mattermost describe pod/mattermost-operator-56bcbf47bf-hq6jb
Name: mattermost-operator-56bcbf47bf-hq6jb
Namespace: mattermost
Priority: 0
Service Account: mattermost-operator
Node: pi3/192.168.0.103
Start Time: Thu, 03 Aug 2023 01:23:36 +0200
Labels: app.kubernetes.io/instance=mattermost-operator
app.kubernetes.io/managed-by=Helm
app.kubernetes.io/name=mattermost-operator
helm.sh/chart=mattermost-operator-0.3.5
name=mattermost-operator
pod-template-hash=56bcbf47bf
Annotations: <none>
Status: Running
IP: 10.42.0.21
IPs:
IP: 10.42.0.21
Controlled By: ReplicaSet/mattermost-operator-56bcbf47bf
Containers:
mattermost-operator:
Container ID: containerd://d8dc3afaf5164060ee031dce747b99c43ee54b52db76a098e93bb64f3ac23cc7
Image: registry.ohmlab.fr/library/mattermost-operator:new-master
Image ID: registry.ohmlab.fr/library/mattermost-operator@sha256:c88c42b9945d0b1c555a165405db88c97c6a165e2461993376a2f0ab4c8b95b7
Port: 8383/TCP
Host Port: 0/TCP
Command:
/mattermost-operator
Args:
--enable-leader-election
--metrics-addr=0.0.0.0:8383
State: Running
Started: Thu, 03 Aug 2023 01:23:43 +0200
Ready: True
Restart Count: 0
Environment:
MAX_RECONCILING_INSTALLATIONS: 20
MAX_RECONCILE_CONCURRENCY: 10
REQUEUE_ON_LIMIT_DELAY: 20s
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-j5mk8 (ro)
Conditions:
Type Status
Initialized True
Ready True
ContainersReady True
PodScheduled True
Volumes:
kube-api-access-j5mk8:
Type: Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds: 3607
ConfigMapName: kube-root-ca.crt
ConfigMapOptional: <nil>
DownwardAPI: true
QoS Class: BestEffort
Node-Selectors: <none>
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 64s default-scheduler Successfully assigned mattermost/mattermost-operator-56bcbf47bf-hq6jb to pi3
Normal Pulling 64s kubelet Pulling image "registry.ohmlab.fr/library/mattermost-operator:new-master"
Normal Pulled 58s kubelet Successfully pulled image "registry.ohmlab.fr/library/mattermost-operator:new-master" in 5.767722162s (5.767754643s including waiting)
Normal Created 58s kubelet Created container mattermost-operator
Normal Started 58s kubelet Started container mattermost-operator
from mattermost-operator.
Related Issues (20)
- Add version upgrade to e2e external test HOT 6
- Add e2e external test for sizes and resource constraints HOT 1
- Resource Patch e2e test HOT 2
- CVEs mitigation
- Mattermost Operator Does Not Support AWS IAM Profile for S3 Bucket Auth
- Inconsistent server behavior with several replicas (k8s) HOT 5
- Gossip traffic service / Istio injection HOT 3
- Operator does not configure port 8443 for calls
- Mattermost on Kubernetes with external MySQL database
- Postgres connection string invalid control character in URL for secret data in base64 HOT 1
- operatorhub.io still has v0.5.0 with max k8s version 1.21 as latest HOT 4
- Cannot set initial admin user with Postgres backend HOT 1
- Docs link to broken mysql-operator in k1.27.3 HOT 2
- Mattermost operator and cluster role scopes
- Mattermost is working but the cluster is reconciling
- [FEATURE]: Add support for COSI
- Service annotation 'tolerate-unready-endpoints' is deprecated HOT 1
- Postgres password rotated, can no longer connect
- Operator managed installation of mattermost with mysql and minio
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mattermost-operator.