wuqiong818 commented on issue #33566:
URL:
https://github.com/apache/shardingsphere/issues/33566#issuecomment-2461332339
i'm run k8s environment。
Below is my startup file
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
k8s.kuboard.cn/displayName: ShardingSphere测试学习版
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: shardingsphere01
name: shardingsphere01
namespace: sharding
resourceVersion: '11745742'
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: shardingsphere01
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
kubectl.kubernetes.io/restartedAt: '2024-11-07T11:56:06+08:00'
creationTimestamp: null
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: shardingsphere01
pod-template-hash: 54568c578f
spec:
containers:
- env:
- name: JVM_OPTS
value: '"-Xms256m -Xmx400m -Xss1m"'
image: 'yiwuqiong/sharding-etcd:3.0'
imagePullPolicy: Always
name: shardingproxy
ports:
- containerPort: 3307
protocol: TCP
resources:
limits:
cpu: 200m
memory: 400Mi
requests:
cpu: 200m
memory: 200Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /opt/shardingsphere-proxy/conf
name: volume-3zhmw
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- configMap:
defaultMode: 420
name: shardingproxyconf
name: volume-3zhmw
status:
availableReplicas: 1
conditions:
- lastTransitionTime: '2024-11-07T03:56:08Z'
lastUpdateTime: '2024-11-07T03:56:08Z'
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: 'True'
type: Available
- lastTransitionTime: '2024-10-25T08:25:40Z'
lastUpdateTime: '2024-11-07T03:56:08Z'
message: ReplicaSet "shardingsphere01-79cf67c5fb" has successfully
progressed.
reason: NewReplicaSetAvailable
status: 'True'
type: Progressing
observedGeneration: 146
readyReplicas: 1
replicas: 1
updatedReplicas: 1
---
apiVersion: v1
kind: Service
metadata:
annotations: {}
labels:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: shardingsphere01
name: shardingsphere01
namespace: sharding
resourceVersion: '11346122'
spec:
clusterIP: 10.43.228.205
clusterIPs:
- 10.43.228.205
externalTrafficPolicy: Cluster
internalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: phpwwx
nodePort: 1226
port: 3307
protocol: TCP
targetPort: 3307
selector:
k8s.kuboard.cn/layer: cloud
k8s.kuboard.cn/name: shardingsphere01
sessionAffinity: None
type: NodePort
status:
loadBalancer: {}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]