Skip to content

Instantly share code, notes, and snippets.

@BiTree
Created September 18, 2020 03:03
Show Gist options
  • Save BiTree/158ca22f044891c4b1ab404e3761aaae to your computer and use it in GitHub Desktop.
Save BiTree/158ca22f044891c4b1ab404e3761aaae to your computer and use it in GitHub Desktop.
deployment_test
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: abtesthash
enabled: "true"
name: abtesthash
namespace: default
spec:
minReadySeconds: 5
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: abtesthash
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: abtesthash
enabled: "true"
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- abtesthash
topologyKey: kubernetes.io/hostname
containers:
- image: 10.237.79.203/ume_python/abtesthash:1
imagePullPolicy: IfNotPresent
name: abtesthash
ports:
- containerPort: 5010
name: http-port
protocol: TCP
resources:
limits:
cpu: "4"
memory: 4Gi
requests:
cpu: 100m
memory: 2Gi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /usr/local/src
name: data-volume
- mountPath: /data/appdatas/cat
name: configmap-volume
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 20
volumes:
- hostPath:
path: /opt/applog/MskyLog
type: ""
name: data-volume
- configMap:
defaultMode: 420
name: client
name: configmap-volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment