chore: change to an image which work on M1 Mac
This commit is contained in:
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- mysql.yaml
|
- mysql.yaml
|
||||||
- postgres.yaml
|
- postgres.yaml
|
||||||
- rabbitmq.yaml
|
- rabbitmq.yaml
|
||||||
- https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
|
- https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/kind/deploy.yaml
|
||||||
|
|||||||
+17
-17
@@ -25,21 +25,21 @@ spec:
|
|||||||
app: mysql
|
app: mysql
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: mysql:8
|
- image: jamielsharief/mysql
|
||||||
|
name: mysql
|
||||||
|
env:
|
||||||
|
- name: MYSQL_ROOT_PASSWORD
|
||||||
|
value: password
|
||||||
|
ports:
|
||||||
|
- containerPort: 3306
|
||||||
name: mysql
|
name: mysql
|
||||||
env:
|
volumeMounts:
|
||||||
- name: MYSQL_ROOT_PASSWORD
|
|
||||||
value: password
|
|
||||||
ports:
|
|
||||||
- containerPort: 3306
|
|
||||||
name: mysql
|
|
||||||
volumeMounts:
|
|
||||||
- name: data
|
|
||||||
mountPath: /var/lib/mysql
|
|
||||||
volumes:
|
|
||||||
- name: data
|
- name: data
|
||||||
hostPath:
|
mountPath: /var/lib/mysql
|
||||||
path: /data/mysql
|
volumes:
|
||||||
|
- name: data
|
||||||
|
hostPath:
|
||||||
|
path: /data/mysql
|
||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
@@ -50,10 +50,10 @@ metadata:
|
|||||||
name: mysql
|
name: mysql
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: mysql
|
- name: mysql
|
||||||
port: 3306
|
port: 3306
|
||||||
nodePort: 3306
|
nodePort: 3306
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
selector:
|
selector:
|
||||||
app: mysql
|
app: mysql
|
||||||
sessionAffinity: None
|
sessionAffinity: None
|
||||||
|
|||||||
+25
-25
@@ -22,30 +22,30 @@ spec:
|
|||||||
app: postgres
|
app: postgres
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
image: postgres:12.0
|
image: postgres:12.0
|
||||||
imagePullPolicy: "IfNotPresent"
|
imagePullPolicy: "IfNotPresent"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 200Mi
|
memory: 200Mi
|
||||||
limits:
|
limits:
|
||||||
memory: 300Mi
|
memory: 300Mi
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
env:
|
env:
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
value: postgres
|
value: postgres
|
||||||
- name: POSTGRES_USER
|
- name: POSTGRES_USER
|
||||||
value: postgres
|
value: postgres
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
value: postgres
|
value: postgres
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
|
||||||
mountPath: /var/lib/postgresql/data
|
|
||||||
volumes:
|
|
||||||
- name: data
|
- name: data
|
||||||
hostPath:
|
mountPath: /var/lib/postgresql/data
|
||||||
path: /data/postgres
|
volumes:
|
||||||
|
- name: data
|
||||||
|
hostPath:
|
||||||
|
path: /data/postgres
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
@@ -55,8 +55,8 @@ metadata:
|
|||||||
app: postgres
|
app: postgres
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- port: 5432
|
- port: 5432
|
||||||
nodePort: 5432
|
nodePort: 5432
|
||||||
selector:
|
selector:
|
||||||
app: postgres
|
app: postgres
|
||||||
type: NodePort
|
type: NodePort
|
||||||
|
|||||||
+86
-86
@@ -30,73 +30,73 @@ spec:
|
|||||||
app: rabbitmq
|
app: rabbitmq
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- env:
|
- env:
|
||||||
- name: RABBITMQ_DEFAULT_USER
|
- name: RABBITMQ_DEFAULT_USER
|
||||||
value: user
|
value: user
|
||||||
- name: RABBITMQ_DEFAULT_PASS
|
- name: RABBITMQ_DEFAULT_PASS
|
||||||
value: password
|
value: password
|
||||||
- name: RABBITMQ_NODE_PORT_NUMBER
|
- name: RABBITMQ_NODE_PORT_NUMBER
|
||||||
value: "5672"
|
value: "5672"
|
||||||
- name: RABBITMQ_NODE_TYPE
|
- name: RABBITMQ_NODE_TYPE
|
||||||
value: stats
|
value: stats
|
||||||
- name: RABBITMQ_NODENAME
|
- name: RABBITMQ_NODENAME
|
||||||
value: rabbit@localhost
|
value: rabbit@localhost
|
||||||
- name: RABBITMQ_CLUSTER_NODE_NAME
|
- name: RABBITMQ_CLUSTER_NODE_NAME
|
||||||
- name: RABBITMQ_DEFAULT_VHOST
|
- name: RABBITMQ_DEFAULT_VHOST
|
||||||
value: /
|
value: /
|
||||||
- name: RABBITMQ_MANAGER_PORT_NUMBER
|
- name: RABBITMQ_MANAGER_PORT_NUMBER
|
||||||
value: "15672"
|
value: "15672"
|
||||||
- name: RABBITMQ_DISK_FREE_LIMIT
|
- name: RABBITMQ_DISK_FREE_LIMIT
|
||||||
value: '"8GiB"'
|
value: '"8GiB"'
|
||||||
image: sparetimecoders/rabbitmq:latest
|
image: sparetimecoders/rabbitmq:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- rabbitmqctl
|
- rabbitmqctl
|
||||||
- status
|
- status
|
||||||
failureThreshold: 6
|
failureThreshold: 6
|
||||||
initialDelaySeconds: 120
|
initialDelaySeconds: 120
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
timeoutSeconds: 5
|
timeoutSeconds: 5
|
||||||
name: rabbitmq
|
name: rabbitmq
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 4369
|
- containerPort: 4369
|
||||||
name: epmd
|
name: epmd
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- containerPort: 5672
|
- containerPort: 5672
|
||||||
name: amqp
|
name: amqp
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- containerPort: 25672
|
- containerPort: 25672
|
||||||
name: dist
|
name: dist
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- containerPort: 15672
|
- containerPort: 15672
|
||||||
name: stats
|
name: stats
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
- rabbitmqctl
|
- rabbitmqctl
|
||||||
- status
|
- status
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
successThreshold: 1
|
successThreshold: 1
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
terminationMessagePath: /dev/termination-log
|
terminationMessagePath: /dev/termination-log
|
||||||
terminationMessagePolicy: File
|
terminationMessagePolicy: File
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
|
||||||
mountPath: /var/lib/rabbitmq
|
|
||||||
volumes:
|
|
||||||
- name: data
|
- name: data
|
||||||
hostPath:
|
mountPath: /var/lib/rabbitmq
|
||||||
path: /data/rabbitmq
|
volumes:
|
||||||
|
- name: data
|
||||||
|
hostPath:
|
||||||
|
path: /data/rabbitmq
|
||||||
dnsPolicy: ClusterFirst
|
dnsPolicy: ClusterFirst
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
|
|
||||||
@@ -112,26 +112,26 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
externalTrafficPolicy: Cluster
|
externalTrafficPolicy: Cluster
|
||||||
ports:
|
ports:
|
||||||
- name: epmd
|
- name: epmd
|
||||||
nodePort: 31799
|
nodePort: 31799
|
||||||
port: 4369
|
port: 4369
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: epmd
|
targetPort: epmd
|
||||||
- name: amqp
|
- name: amqp
|
||||||
nodePort: 5672
|
nodePort: 5672
|
||||||
port: 5672
|
port: 5672
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: amqp
|
targetPort: amqp
|
||||||
- name: dist
|
- name: dist
|
||||||
nodePort: 32687
|
nodePort: 32687
|
||||||
port: 25672
|
port: 25672
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: dist
|
targetPort: dist
|
||||||
- name: stats
|
- name: stats
|
||||||
nodePort: 15672
|
nodePort: 15672
|
||||||
port: 15672
|
port: 15672
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: stats
|
targetPort: stats
|
||||||
selector:
|
selector:
|
||||||
app: rabbitmq
|
app: rabbitmq
|
||||||
sessionAffinity: None
|
sessionAffinity: None
|
||||||
|
|||||||
Reference in New Issue
Block a user