liberal2020 kind: Deployment
apiVersion: apps/v1
metadata:
name: kubesphere-router-elec-iot
namespace: kubesphere-controls-system
annotations:
deployment.kubernetes.io/revision: ‘13’
spec:
replicas: 1
selector:
matchLabels:
app: kubesphere
component: ks-router
project: elec-iot
tier: backend
template:
metadata:
creationTimestamp: null
labels:
app: kubesphere
component: ks-router
project: elec-iot
tier: backend
annotations:
kubesphere.io/containerSecrets: ''
prometheus.io/port: ‘10254’
prometheus.io/scrape: ‘true’
sidecar.istio.io/inject: ‘false’
spec:
volumes:
- name: host-time
hostPath:
path: /etc/localtime
type: ''
containers:
- name: nginx-ingress-controller
image: ‘kubesphere/nginx-ingress-controller:0.24.1’
args:
- /nginx-ingress-controller
- ‘–annotations-prefix=nginx.ingress.kubernetes.io’
- ‘–force-namespace-isolation’
- ‘–update-status’
- ‘–update-status-on-shutdown’
- ‘–configmap=$(POD_NAMESPACE)/kubesphere-router-elec-iot-nginx’
- ‘–watch-namespace=elec-iot’
- ‘–election-id=kubesphere-router-elec-iot’
- >-
–publish-service=kubesphere-controls-system/kubesphere-router-elec-iot
ports:
- name: http
containerPort: 80
protocol: TCP
- name: https
containerPort: 443
protocol: TCP
env:
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
resources: {}
volumeMounts:
- name: host-time
readOnly: true
mountPath: /etc/localtime
livenessProbe:
httpGet:
path: /healthz
port: 10254
scheme: HTTP
initialDelaySeconds: 10
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
readinessProbe:
httpGet:
path: /healthz
port: 10254
scheme: HTTP
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
securityContext:
runAsNonRoot: false
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
serviceAccountName: kubesphere-router-serviceaccount
serviceAccount: kubesphere-router-serviceaccount
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600