上下文,我有一个数据存储的项目,它已经加载了信息,目前我们想使用云防火墙(本机模式),但我们意识到迁移是不可能的,我必须使用云防火墙(本机模式)有什么替代方案?
firebase google-cloud-datastore firebase-realtime-database google-cloud-firestore
我目前正在使用微服务架构在 Google Cloud 上使用 Kubernetes。在集群中,我有不同的 Pod,每个 Pod 都可以使用 ClusterIp 通过 curl 与其他 Pod 通信。
我的问题是我需要使用 ClusterIp 不时调用这些 Pod 之一的端点。为此,我创建了一个 CronJob 来卷曲 pod 的端点,但它总是返回:
curl: (7) Failed to connect to xx.xx.xx.xx port 8080: Connection refused
Run Code Online (Sandbox Code Playgroud)
这是 cronJob 的 yaml。
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: cronjob-test # name of the CronJob
spec:
schedule: "*/1 * * * *" # run every minute
concurrencyPolicy: Replace
jobTemplate:
spec:
template:
spec:
containers:
- name: cronjob-test
image: appropriate/curl
args:
- /bin/sh
- -c
- curl …Run Code Online (Sandbox Code Playgroud) google-cloud-platform kubernetes kubernetes-pod kubernetes-cronjob
据我所知,使用社区版本可以对主分支进行分析。
如何才能做到这一点?因为我发现的唯一方法是使用声纳扫描仪。
谢谢。