1. 程式人生 > 程式設計 >如何利用JavaScript獲取字串中重複次數最多的字元

如何利用JavaScript獲取字串中重複次數最多的字元

apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-nginx
# 描述...
spec:
  replicas: 2
  selector:
    matchLabels:
      app: my-nginx
  template:
    metadata:
      labels:
        app: my-nginx
    # pod...
    spec:
      containers:
      - name: my-nginx
        image: nginx
        ports:
        - containerPort: 80

.

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name:
  namespace:
  labels:
spec:
  replicas:                                   # 設定Deployment的副本數量
  selector:
    matchLabels:                             # 設定匹配標籤的POD來建立deployment例項
      lable_name:
  template:                                  # 設定Pod模板
    metadata:
      name:
      labels:
        lable_name: label                     # 需要和上面的selector中的matchLabels保持一致
    spec:
      containers:                             # Pod裡面執行的容器
      - name:  container_name1                # 設定容器名字
        image: xx                             # 設定image地址
        imagePullPolicy:                      # 設定下載映象策略,常用選項Always、Never、IfNotPresent
        args:                                # []列表型別   設定容器啟動的引數,用於替換容器中cmd
        command:                              # []列表型別   設定容器啟動指令碼 用於替換容器中EntryPoint
        env:
        - name:                               # 列表物件型別   設定容器啟動環境變數
          value:
        lifecycle:                            # 描述容器的啟動之前和啟動之後的動作
          postStart:
          preStop:
        ports:
        livenessProbe:                        # 是否執行健康
        readinessProbe:                       # 是否啟動完成
        restartPolicy:                        # Pod異常重啟策略 Always、OnFailure 、Never
      nodeSelector:
        strategy:                             # 設定滾動更新策略
          rollingUpdate:

參考
https://blog.csdn.net/yucaifu1989/article/details/106682256
https://www.cnblogs.com/xiaopaipai/p/10602984.html