This commit is contained in:
2022-08-06 16:36:37 +08:00
parent 8eb4f3b596
commit 1e789c161b
3 changed files with 71 additions and 2 deletions

68
deployment.yaml Normal file
View File

@@ -0,0 +1,68 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: console
namespace: sangge
labels:
app: console
annotations:
deployment.kubernetes.io/revision: '1'
spec:
replicas: 1
selector:
matchLabels:
app: console
template:
metadata:
creationTimestamp: null
labels:
app: console
spec:
containers:
- name: console
image: 'reg.sre.victor-core.top/cobalt-strike/console:1.3.0'
ports:
- containerPort: 4444
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600
---
kind: Service
apiVersion: v1
metadata:
name: console
namespace: sangge
labels:
app: console
spec:
ports:
- protocol: TCP
port: 4444
targetPort: 4444
nodePort: 30299
selector:
app: console
clusterIP: 10.68.199.250
clusterIPs:
- 10.68.199.250
type: NodePort
sessionAffinity: None
externalTrafficPolicy: Cluster
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
internalTrafficPolicy: Cluster