-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update version to 1.0.2, add arm64 build
Signed-off-by: caimingxia <mingshao.cmx@alibaba-inc.com>
- Loading branch information
Showing
16 changed files
with
468 additions
and
102 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM multiarch/ubuntu-debootstrap:arm64-bionic | ||
LABEL maintainer="Mingxia Cai" | ||
|
||
# install gcc make git | ||
RUN apt-get update \ | ||
&& apt-get install -y build-essential git | ||
|
||
# The image is used to build chaosblade for musl | ||
RUN wget http://www.musl-libc.org/releases/musl-1.1.21.tar.gz \ | ||
&& tar -zxvf musl-1.1.21.tar.gz \ | ||
&& rm musl-1.1.21.tar.gz \ | ||
&& cd musl* \ | ||
&& ./configure \ | ||
&& make \ | ||
&& make install \ | ||
&& rm -rf musl* | ||
|
||
# install go | ||
RUN wget https://dl.google.com/go/go1.13.10.linux-arm64.tar.gz \ | ||
&& tar -C /usr/local -xzf go1.13.10.linux-arm64.tar.gz \ | ||
&& rm -rf go1.13.10.linux-arm64.tar.gz | ||
|
||
ENV CC /usr/local/musl/bin/musl-gcc | ||
ENV GOOS linux | ||
ENV PATH /usr/local/go/bin:$PATH | ||
|
||
|
||
ENTRYPOINT [ "make" ] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v1 | ||
appVersion: "1.0.2" | ||
description: A SaaS-based service that aims to improve the high availability of your applications. | ||
name: chaosblade-box-agent | ||
version: 1.0.2 | ||
home: https://www.alibabacloud.com/products/chaos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Thank you for using the {{ .Release.Name }} service, you can check the service installation status by the following command: | ||
kubectl get pods -n {{ .Release.Namespace }}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{/* vim: set filetype=mustache: */}} |
121 changes: 121 additions & 0 deletions
121
build/helm3/chaos-agent-arm/templates/ahas_deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: chaos-agent | ||
labels: | ||
name: chaos-agent | ||
app: chaos-agent | ||
spec: | ||
selector: | ||
matchLabels: | ||
name: chaos-agent | ||
template: | ||
metadata: | ||
labels: | ||
name: chaos-agent | ||
spec: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: type | ||
operator: NotIn | ||
values: | ||
- virtual-kubelet | ||
containers: | ||
- name: chaos-agent | ||
image: {{ .Values.images.chaos.repository }}:{{ .Values.images.chaos.version }} | ||
imagePullPolicy: {{ .Values.images.chaos.pullPolicy }} | ||
env: | ||
- name: KUBERNETES_NODENAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
- name: DOCKER_API_VERSION | ||
value: "1.14.0" | ||
args: | ||
{{- if .Values.license }} | ||
- '--license={{ .Values.license }}' | ||
{{- end }} | ||
{{- if .Values.env.mode }} | ||
- '--agent.mode={{ .Values.env.mode }}' | ||
{{- end }} | ||
{{- if .Values.env.name }} | ||
- '--namespace={{ .Values.env.name }}' | ||
{{- end }} | ||
{{- if .Values.env.debug }} | ||
- '--debug' | ||
{{- end }} | ||
{{- if .Values.controller.cluster_id }} | ||
- '--kubernetes.cluster.id={{ .Values.controller.cluster_id }}' | ||
{{- end }} | ||
{{- if .Values.controller.cluster_name }} | ||
- '--kubernetes.cluster.name={{ .Values.controller.cluster_name }}' | ||
{{- end }} | ||
{{- if .Values.controller.cluster_type }} | ||
- '--kubernetes.cluster.type={{ .Values.controller.cluster_type }}' | ||
{{- end }} | ||
{{- if .Values.transport.endpoint }} | ||
- '--transport.endpoint={{ .Values.transport.endpoint }}' | ||
{{ end }} | ||
- '--kubernetes.pod.report=true' | ||
- '--kubernetes.externalIp.enable={{ .Values.controller.externalIp_enable }}' | ||
securityContext: | ||
privileged: true | ||
resources: | ||
requests: | ||
cpu: 0.05 | ||
memory: 200Mi | ||
limits: | ||
cpu: 0.2 | ||
memory: 300Mi | ||
volumeMounts: | ||
- mountPath: /var/run/docker.sock | ||
name: docker-socket | ||
- mountPath: /etc/hosts | ||
name: hosts | ||
- mountPath: /run/containerd | ||
name: containerd | ||
- mountPath: /var/lib/containerd | ||
name: containerd-lib | ||
- mountPath: /etc/containerd | ||
name: containerd-etc | ||
|
||
dnsPolicy: ClusterFirstWithHostNet | ||
hostNetwork: true | ||
hostPID: true | ||
tolerations: | ||
- effect: NoSchedule | ||
operator: Exists | ||
volumes: | ||
- hostPath: | ||
path: /var/run/docker.sock | ||
name: docker-socket | ||
- hostPath: | ||
path: /etc/hosts | ||
name: hosts | ||
- hostPath: | ||
path: /run/containerd | ||
name: containerd | ||
- hostPath: | ||
path: /var/lib/containerd | ||
name: containerd-lib | ||
- hostPath: | ||
path: /etc/containerd | ||
name: containerd-etc | ||
serviceAccountName: chaos-agent | ||
|
||
--- | ||
kind: Service | ||
apiVersion: v1 | ||
metadata: | ||
name: chaos-agent | ||
spec: | ||
type: LoadBalancer | ||
ports: | ||
- name: http | ||
port: {{ .Values.transport.port }} | ||
targetPort: {{ .Values.transport.port }} | ||
selector: | ||
name: chaos-agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
name: chaos-agent | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
labels: | ||
name: chaos-agent | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: chaos-agent | ||
subjects: | ||
- kind: ServiceAccount | ||
name: chaos-agent | ||
namespace: {{ .Release.Namespace }} | ||
|
||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: chaos-agent | ||
rules: | ||
- apiGroups: | ||
- '' | ||
resources: | ||
- pods | ||
- pods/exec | ||
- services | ||
- endpoints | ||
- configmaps | ||
- secrets | ||
- nodes | ||
- namespaces | ||
- persistentvolumes | ||
- persistentvolumeclaims | ||
- events | ||
- serviceaccounts | ||
- chaosexperiments | ||
- chaosengines | ||
verbs: | ||
- "*" | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- deployments | ||
- daemonsets | ||
- replicasets | ||
- statefulsets | ||
verbs: | ||
- "*" | ||
- apiGroups: | ||
- batch | ||
resources: | ||
- cronjobs | ||
- jobs | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- extensions | ||
resources: | ||
- deployments | ||
- daemonsets | ||
- replicasets | ||
- statefulsets | ||
- ingresses | ||
verbs: | ||
- "*" | ||
- apiGroups: | ||
- networking.k8s.io | ||
resources: | ||
- ingresses | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- storage.k8s.io | ||
resources: | ||
- storageclasses | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- chaosblade.io | ||
resources: | ||
- chaosblades | ||
- chaosblades/status | ||
verbs: | ||
- "*" | ||
- apiGroups: | ||
- litmuschaos.io | ||
resources: | ||
- chaosexperiments | ||
- chaosengines | ||
- chaosresults | ||
verbs: | ||
- "*" | ||
- apiGroups: | ||
- apiextensions.k8s.io | ||
resources: | ||
- customresourcedefinitions | ||
verbs: | ||
- "*" | ||
- apiGroups: | ||
- rbac.authorization.k8s.io | ||
resources: | ||
- clusterroles | ||
- clusterrolebindings | ||
- roles | ||
- rolebindings | ||
verbs: | ||
- "*" | ||
- nonResourceURLs: | ||
- /api | ||
- /api/* | ||
- /apis | ||
- /apis/* | ||
- /healthz | ||
- /openapi | ||
- /openapi/* | ||
- /version | ||
- /version/ | ||
verbs: | ||
- post | ||
- delete | ||
- get |
Oops, something went wrong.