Kubernetes - 阿里云单pod独立eip

2021-12-22
apiVersion: v1
kind: Pod
metadata:
  annotations:
    k8s.aliyun.com/eip-bandwidth: "200"
    k8s.aliyun.com/pod-with-eip: "true"
  labels:
    app: nginx-0
  name: nginx-0
  namespace: default
spec:
  containers:
  - image: nginx
    imagePullPolicy: IfNotPresent
    name: nginx-0
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext: {}
  serviceAccount: default
  serviceAccountName: default
  terminationGracePeriodSeconds: 30
  tolerations:
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
    tolerationSeconds: 300
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
    tolerationSeconds: 300

参考文档

https://help.aliyun.com/document_detail/200610.html


标题:Kubernetes - 阿里云单pod独立eip
地址:https://blog.njqhome.com:8443/articles/2021/12/22/1640155916568.html