Compare commits
6 Commits
e2e032ac94
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e3bb35f86 | |||
| 47cbd88587 | |||
| dd74762778 | |||
| 07d7f45e64 | |||
| 536c0c4ddc | |||
| fcb2e69615 |
9
TODO.md
Normal file
9
TODO.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
root@pine01:/etc/kubernetes# kubeadm upgrade apply v1.24.9 --ignore-preflight-errors=CoreDNSUnsupportedPlugins
|
||||||
|
[upgrade/config] Making sure the configuration is correct:
|
||||||
|
[upgrade/config] Reading configuration from the cluster...
|
||||||
|
[upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
|
||||||
|
W0112 18:28:48.533830 21616 initconfiguration.go:120] Usage of CRI endpoints without URL scheme is deprecated and can cause kubelet errors in the future. Automatically prepending scheme "unix" to the "criSocket" with value "/run/containerd/containerd.sock". Please update your configuration!
|
||||||
|
|
||||||
|
|
||||||
|
CoreDNS v1.8.6 v1.9.3
|
||||||
|
|
||||||
33
_CI-CD/tekton-pvc.yaml
Normal file
33
_CI-CD/tekton-pvc.yaml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: tektoncd-workspaces
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 40Gi
|
||||||
|
storageClassName: nfs-ssd-ebin02
|
||||||
|
volumeMode: Filesystem
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: tektoncd-workspaces
|
||||||
|
spec:
|
||||||
|
storageClassName: "nfs-ssd-ebin02"
|
||||||
|
nfs:
|
||||||
|
path: /data/raid1-ssd/k8s-data/tektoncd-workspaces
|
||||||
|
server: ebin02
|
||||||
|
capacity:
|
||||||
|
storage: 40Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
volumeMode: Filesystem
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
claimRef:
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
name: tektoncd-workspaces
|
||||||
|
namespace: default
|
||||||
@@ -46,6 +46,15 @@ spec:
|
|||||||
description: Digest of the image just built.
|
description: Digest of the image just built.
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: debug
|
||||||
|
workingDir: $(workspaces.source.path)
|
||||||
|
image: bash
|
||||||
|
script: |
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
export
|
||||||
|
pwd
|
||||||
|
mount
|
||||||
|
ls -al
|
||||||
- name: build-and-push
|
- name: build-and-push
|
||||||
workingDir: $(workspaces.source.path)
|
workingDir: $(workspaces.source.path)
|
||||||
image: $(params.BUILDER_IMAGE)
|
image: $(params.BUILDER_IMAGE)
|
||||||
|
|||||||
@@ -1,3 +1,87 @@
|
|||||||
|
Upgrade:
|
||||||
|
|
||||||
|
```
|
||||||
|
export KV=1.26.0-00;
|
||||||
|
apt-mark unhold kubeadm=$KV kubectl=$KV kubelet=$KV;
|
||||||
|
apt install -y kubeadm=$KV;
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
kubeadm upgrade node #Other pines in the wood
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
#pine01
|
||||||
|
kubeadm upgrade plan --ignore-preflight-errors=CoreDNSUnsupportedPlugins;
|
||||||
|
kubeadm config images pull;
|
||||||
|
kubeadm upgrade apply ${KV/\-*/} --ignore-preflight-errors=CoreDNSUnsupportedPlugins --certificate-renewal=false; #sometimes true
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
apt install kubectl=$KV kubelet=$KV;
|
||||||
|
systemctl daemon-reload && systemctl restart kubelet;
|
||||||
|
apt-mark hold kubeadm=$KV kubectl=$KV kubelet=$KV;
|
||||||
|
echo 'You can now uncordon, der Geraet';
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Infos:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ kubectl -n kube-system get cm kubeadm-config -o yaml
|
||||||
|
apiVersion: v1
|
||||||
|
data:
|
||||||
|
ClusterConfiguration: |
|
||||||
|
apiServer:
|
||||||
|
extraArgs:
|
||||||
|
authorization-mode: Node,RBAC
|
||||||
|
timeoutForControlPlane: 4m0s
|
||||||
|
apiVersion: kubeadm.k8s.io/v1beta3
|
||||||
|
certificatesDir: /etc/kubernetes/pki
|
||||||
|
clusterName: kubernetes
|
||||||
|
controllerManager: {}
|
||||||
|
dns: {}
|
||||||
|
etcd:
|
||||||
|
local:
|
||||||
|
dataDir: /var/lib/etcd
|
||||||
|
imageRepository: registry.k8s.io
|
||||||
|
kind: ClusterConfiguration
|
||||||
|
kubernetesVersion: v1.23.15
|
||||||
|
networking:
|
||||||
|
dnsDomain: cluster.local
|
||||||
|
podSubnet: 172.23.0.0/16
|
||||||
|
serviceSubnet: 10.96.0.0/12
|
||||||
|
scheduler: {}
|
||||||
|
ClusterStatus: |
|
||||||
|
apiEndpoints:
|
||||||
|
pine01:
|
||||||
|
advertiseAddress: 172.16.23.21
|
||||||
|
bindPort: 6443
|
||||||
|
apiVersion: kubeadm.k8s.io/v1beta2
|
||||||
|
kind: ClusterStatus
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: "2021-01-20T14:55:12Z"
|
||||||
|
managedFields:
|
||||||
|
- apiVersion: v1
|
||||||
|
fieldsType: FieldsV1
|
||||||
|
fieldsV1:
|
||||||
|
f:data:
|
||||||
|
.: {}
|
||||||
|
f:ClusterConfiguration: {}
|
||||||
|
f:ClusterStatus: {}
|
||||||
|
manager: kubeadm
|
||||||
|
operation: Update
|
||||||
|
time: "2021-01-20T14:55:12Z"
|
||||||
|
name: kubeadm-config
|
||||||
|
namespace: kube-system
|
||||||
|
resourceVersion: "441685033"
|
||||||
|
uid: c70fefd3-02c3-44c8-a37d-7b17ec445455
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Descheduler (reschedule pods)
|
Descheduler (reschedule pods)
|
||||||
# https://github.com/kubernetes-sigs/descheduler
|
# https://github.com/kubernetes-sigs/descheduler
|
||||||
# kubectl apply -n kube-system -f https://raw.githubusercontent.com/kubernetes-sigs/descheduler/master/kubernetes/base/rbac.yaml
|
# kubectl apply -n kube-system -f https://raw.githubusercontent.com/kubernetes-sigs/descheduler/master/kubernetes/base/rbac.yaml
|
||||||
|
|||||||
122
_sys/coredns-1.26-x.yaml
Normal file
122
_sys/coredns-1.26-x.yaml
Normal file
@@ -0,0 +1,122 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: coredns
|
||||||
|
namespace: kube-system
|
||||||
|
uid: 7bf78c83-68ac-4dee-95f6-52964e38e2d3
|
||||||
|
resourceVersion: '441765420'
|
||||||
|
generation: 37
|
||||||
|
creationTimestamp: '2021-01-20T14:55:14Z'
|
||||||
|
labels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
annotations:
|
||||||
|
deployment.kubernetes.io/revision: '34'
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
labels:
|
||||||
|
k8s-app: kube-dns
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: config-volume
|
||||||
|
configMap:
|
||||||
|
name: coredns
|
||||||
|
items:
|
||||||
|
- key: Corefile
|
||||||
|
path: Corefile
|
||||||
|
defaultMode: 420
|
||||||
|
containers:
|
||||||
|
- name: coredns
|
||||||
|
image: registry.k8s.io/coredns/coredns:v1.9.3
|
||||||
|
args:
|
||||||
|
- '-conf'
|
||||||
|
- /etc/coredns/Corefile
|
||||||
|
ports:
|
||||||
|
- name: dns
|
||||||
|
containerPort: 53
|
||||||
|
protocol: UDP
|
||||||
|
- name: dns-tcp
|
||||||
|
containerPort: 53
|
||||||
|
protocol: TCP
|
||||||
|
- name: metrics
|
||||||
|
containerPort: 9153
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 170Mi
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 70Mi
|
||||||
|
volumeMounts:
|
||||||
|
- name: config-volume
|
||||||
|
readOnly: true
|
||||||
|
mountPath: /etc/coredns
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: 8080
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
timeoutSeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 5
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /ready
|
||||||
|
port: 8181
|
||||||
|
scheme: HTTP
|
||||||
|
timeoutSeconds: 1
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 3
|
||||||
|
terminationMessagePath: /dev/termination-log
|
||||||
|
terminationMessagePolicy: File
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
securityContext:
|
||||||
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_BIND_SERVICE
|
||||||
|
drop:
|
||||||
|
- all
|
||||||
|
readOnlyRootFilesystem: true
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
restartPolicy: Always
|
||||||
|
terminationGracePeriodSeconds: 30
|
||||||
|
dnsPolicy: Default
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/os: linux
|
||||||
|
serviceAccountName: coredns
|
||||||
|
serviceAccount: coredns
|
||||||
|
securityContext: {}
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchExpressions:
|
||||||
|
- key: k8s-app
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- kube-dns
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
schedulerName: default-scheduler
|
||||||
|
tolerations:
|
||||||
|
- key: CriticalAddonsOnly
|
||||||
|
operator: Exists
|
||||||
|
- key: node-role.kubernetes.io/control-plane
|
||||||
|
effect: NoSchedule
|
||||||
|
priorityClassName: system-cluster-critical
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxUnavailable: 1
|
||||||
|
maxSurge: 25%
|
||||||
|
revisionHistoryLimit: 10
|
||||||
|
progressDeadlineSeconds: 600
|
||||||
@@ -84,8 +84,8 @@ spec:
|
|||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
name: coredns
|
|
||||||
metadata:
|
metadata:
|
||||||
|
name: coredns
|
||||||
labels:
|
labels:
|
||||||
k8s-app: kube-dns
|
k8s-app: kube-dns
|
||||||
spec:
|
spec:
|
||||||
@@ -109,7 +109,7 @@ spec:
|
|||||||
- args:
|
- args:
|
||||||
- -conf
|
- -conf
|
||||||
- /etc/coredns/Corefile
|
- /etc/coredns/Corefile
|
||||||
image: k8s.gcr.io/coredns/coredns:v1.8.6
|
image: registry.k8s.io/coredns/coredns:v1.9.3
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
failureThreshold: 5
|
failureThreshold: 5
|
||||||
@@ -132,6 +132,16 @@ spec:
|
|||||||
- containerPort: 9153
|
- containerPort: 9153
|
||||||
name: metrics
|
name: metrics
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: 8080
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 60
|
||||||
|
timeoutSeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
successThreshold: 1
|
||||||
|
failureThreshold: 5
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
httpGet:
|
httpGet:
|
||||||
@@ -155,6 +165,7 @@ spec:
|
|||||||
drop:
|
drop:
|
||||||
- all
|
- all
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
terminationMessagePath: /dev/termination-log
|
terminationMessagePath: /dev/termination-log
|
||||||
terminationMessagePolicy: File
|
terminationMessagePolicy: File
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|||||||
@@ -1,60 +1,16 @@
|
|||||||
---
|
---
|
||||||
apiVersion: policy/v1beta1
|
kind: Namespace
|
||||||
kind: PodSecurityPolicy
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: psp.flannel.unprivileged
|
name: kube-flannel
|
||||||
annotations:
|
labels:
|
||||||
seccomp.security.alpha.kubernetes.io/allowedProfileNames: docker/default
|
pod-security.kubernetes.io/enforce: privileged
|
||||||
seccomp.security.alpha.kubernetes.io/defaultProfileName: docker/default
|
|
||||||
apparmor.security.beta.kubernetes.io/allowedProfileNames: runtime/default
|
|
||||||
apparmor.security.beta.kubernetes.io/defaultProfileName: runtime/default
|
|
||||||
spec:
|
|
||||||
privileged: false
|
|
||||||
volumes:
|
|
||||||
- configMap
|
|
||||||
- secret
|
|
||||||
- emptyDir
|
|
||||||
- hostPath
|
|
||||||
allowedHostPaths:
|
|
||||||
- pathPrefix: "/etc/cni/net.d"
|
|
||||||
- pathPrefix: "/etc/kube-flannel"
|
|
||||||
- pathPrefix: "/run/flannel"
|
|
||||||
readOnlyRootFilesystem: false
|
|
||||||
# Users and groups
|
|
||||||
runAsUser:
|
|
||||||
rule: RunAsAny
|
|
||||||
supplementalGroups:
|
|
||||||
rule: RunAsAny
|
|
||||||
fsGroup:
|
|
||||||
rule: RunAsAny
|
|
||||||
# Privilege Escalation
|
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
defaultAllowPrivilegeEscalation: false
|
|
||||||
# Capabilities
|
|
||||||
allowedCapabilities: ['NET_ADMIN', 'NET_RAW']
|
|
||||||
defaultAddCapabilities: []
|
|
||||||
requiredDropCapabilities: []
|
|
||||||
# Host namespaces
|
|
||||||
hostPID: false
|
|
||||||
hostIPC: false
|
|
||||||
hostNetwork: true
|
|
||||||
hostPorts:
|
|
||||||
- min: 0
|
|
||||||
max: 65535
|
|
||||||
# SELinux
|
|
||||||
seLinux:
|
|
||||||
# SELinux is unused in CaaSP
|
|
||||||
rule: 'RunAsAny'
|
|
||||||
---
|
---
|
||||||
kind: ClusterRole
|
kind: ClusterRole
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: flannel
|
name: flannel
|
||||||
rules:
|
rules:
|
||||||
- apiGroups: ['extensions']
|
|
||||||
resources: ['podsecuritypolicies']
|
|
||||||
verbs: ['use']
|
|
||||||
resourceNames: ['psp.flannel.unprivileged']
|
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
@@ -66,6 +22,7 @@ rules:
|
|||||||
resources:
|
resources:
|
||||||
- nodes
|
- nodes
|
||||||
verbs:
|
verbs:
|
||||||
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
@@ -86,19 +43,19 @@ roleRef:
|
|||||||
subjects:
|
subjects:
|
||||||
- kind: ServiceAccount
|
- kind: ServiceAccount
|
||||||
name: flannel
|
name: flannel
|
||||||
namespace: kube-system
|
namespace: kube-flannel
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ServiceAccount
|
kind: ServiceAccount
|
||||||
metadata:
|
metadata:
|
||||||
name: flannel
|
name: flannel
|
||||||
namespace: kube-system
|
namespace: kube-flannel
|
||||||
---
|
---
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: kube-flannel-cfg
|
name: kube-flannel-cfg
|
||||||
namespace: kube-system
|
namespace: kube-flannel
|
||||||
labels:
|
labels:
|
||||||
tier: node
|
tier: node
|
||||||
app: flannel
|
app: flannel
|
||||||
@@ -135,7 +92,7 @@ apiVersion: apps/v1
|
|||||||
kind: DaemonSet
|
kind: DaemonSet
|
||||||
metadata:
|
metadata:
|
||||||
name: kube-flannel-ds
|
name: kube-flannel-ds
|
||||||
namespace: kube-system
|
namespace: kube-flannel
|
||||||
labels:
|
labels:
|
||||||
tier: node
|
tier: node
|
||||||
app: flannel
|
app: flannel
|
||||||
@@ -165,8 +122,21 @@ spec:
|
|||||||
effect: NoSchedule
|
effect: NoSchedule
|
||||||
serviceAccountName: flannel
|
serviceAccountName: flannel
|
||||||
initContainers:
|
initContainers:
|
||||||
|
- name: install-cni-plugin
|
||||||
|
#image: flannelcni/flannel-cni-plugin:v1.1.0 for ppc64le and mips64le (dockerhub limitations may apply)
|
||||||
|
image: docker.io/rancher/mirrored-flannelcni-flannel-cni-plugin:v1.1.0
|
||||||
|
command:
|
||||||
|
- cp
|
||||||
|
args:
|
||||||
|
- -f
|
||||||
|
- /flannel
|
||||||
|
- /opt/cni/bin/flannel
|
||||||
|
volumeMounts:
|
||||||
|
- name: cni-plugin
|
||||||
|
mountPath: /opt/cni/bin
|
||||||
- name: install-cni
|
- name: install-cni
|
||||||
image: quay.io/coreos/flannel:v0.14.0
|
#image: flannelcni/flannel:v0.20.2 for ppc64le and mips64le (dockerhub limitations may apply)
|
||||||
|
image: docker.io/rancher/mirrored-flannelcni-flannel:v0.20.2
|
||||||
command:
|
command:
|
||||||
- cp
|
- cp
|
||||||
args:
|
args:
|
||||||
@@ -180,7 +150,8 @@ spec:
|
|||||||
mountPath: /etc/kube-flannel/
|
mountPath: /etc/kube-flannel/
|
||||||
containers:
|
containers:
|
||||||
- name: kube-flannel
|
- name: kube-flannel
|
||||||
image: quay.io/coreos/flannel:v0.14.0
|
#image: flannelcni/flannel:v0.20.2 for ppc64le and mips64le (dockerhub limitations may apply)
|
||||||
|
image: docker.io/rancher/mirrored-flannelcni-flannel:v0.20.2
|
||||||
command:
|
command:
|
||||||
- /opt/bin/flanneld
|
- /opt/bin/flanneld
|
||||||
args:
|
args:
|
||||||
@@ -206,18 +177,29 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
|
- name: EVENT_QUEUE_DEPTH
|
||||||
|
value: "5000"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: run
|
- name: run
|
||||||
mountPath: /run/flannel
|
mountPath: /run/flannel
|
||||||
- name: flannel-cfg
|
- name: flannel-cfg
|
||||||
mountPath: /etc/kube-flannel/
|
mountPath: /etc/kube-flannel/
|
||||||
|
- name: xtables-lock
|
||||||
|
mountPath: /run/xtables.lock
|
||||||
volumes:
|
volumes:
|
||||||
- name: run
|
- name: run
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /run/flannel
|
path: /run/flannel
|
||||||
|
- name: cni-plugin
|
||||||
|
hostPath:
|
||||||
|
path: /opt/cni/bin
|
||||||
- name: cni
|
- name: cni
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /etc/cni/net.d
|
path: /etc/cni/net.d
|
||||||
- name: flannel-cfg
|
- name: flannel-cfg
|
||||||
configMap:
|
configMap:
|
||||||
name: kube-flannel-cfg
|
name: kube-flannel-cfg
|
||||||
|
- name: xtables-lock
|
||||||
|
hostPath:
|
||||||
|
path: /run/xtables.lock
|
||||||
|
type: FileOrCreate
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ spec:
|
|||||||
- name: NFS_SERVER
|
- name: NFS_SERVER
|
||||||
value: ebin01
|
value: ebin01
|
||||||
- name: NFS_PATH
|
- name: NFS_PATH
|
||||||
value: /data/raid1-hdd/k8s-data
|
value: /data/k8s-data-hdd
|
||||||
affinity:
|
affinity:
|
||||||
podAntiAffinity:
|
podAntiAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
@@ -46,4 +46,4 @@ spec:
|
|||||||
- name: nfs-client-root
|
- name: nfs-client-root
|
||||||
nfs:
|
nfs:
|
||||||
server: ebin01
|
server: ebin01
|
||||||
path: /data/raid1-hdd/k8s-data
|
path: /data/k8s-data-hdd
|
||||||
|
|||||||
Reference in New Issue
Block a user