gpt4 book ai didi

amazon-web-services - Kubernetes YAML 文件 - 将 Azure 转换为 AWS ("file share"卷段)

转载 作者:行者123 更新时间:2023-12-03 00:21:18 25 4
gpt4 key购买 nike

我的 Azure Kubernetes YAML 文件完全可以在 AKS 中运行。现在我需要为 AWS 做好准备。您能帮我看看需要改变什么吗?我特别指出,很可能必须修改文件共享段,因为“azureFile”段特定于Azure(并且可能相关volumeMounts必须据此进行更改)

apiVersion: apps/v1
kind: Deployment
metadata:
name: frontarena-ads-win-deployment
labels:
app: frontarena-ads-win-deployment
spec:
replicas: 1
template:
metadata:
name: frontarena-ads-win-test
labels:
app: frontarena-ads-win-test
spec:
nodeSelector:
"beta.kubernetes.io/os": windows
restartPolicy: Always
containers:
- name: frontarena-ads-win-test
image: local.docker.dev/frontarena/ads:wintest2
imagePullPolicy: Always
ports:
- containerPort: 9000
volumeMounts:
- name: ads-win-filesharevolume
mountPath: /Host
volumes:
- name: ads-win-filesharevolume
azureFile:
secretName: fa-secret
shareName: fawinshare
readOnly: false
imagePullSecrets:
- name: fa-repo-secret
selector:
matchLabels:
app: frontarena-ads-win-test
---
apiVersion: v1
kind: Service
metadata:
name: frontarena-ads-win-test
spec:
type: ClusterIP
ports:
- protocol: TCP
port: 9001
targetPort: 9000
selector:
app: frontarena-ads-win-test

最佳答案

azurefileStorage Classes provisionners 之一,您可以将其替换为 AWSElasticBlockStore ( AWS EBS )

但您也可能受益于 AWS SMS (AWS Server Migration Service)为了分析您的 Azure 配置并为 AWS 生成一个配置,如 Migrating Azure VM to AWS using AWS SMS Connector for Azure 的“Emma White”中所述.
您需要Install the Server Migration Connector on Azure .
该工具有 limitations though .

另请参阅AWS Application Migration Service对于应用程序部分。

关于amazon-web-services - Kubernetes YAML 文件 - 将 Azure 转换为 AWS ("file share"卷段),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68396765/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com