test
This commit is contained in:
@@ -51,11 +51,12 @@ docker_deploy:
|
|||||||
name: bitnami/kubectl
|
name: bitnami/kubectl
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
script:
|
script:
|
||||||
|
- kubectl apply -f deployment.yaml --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
|
||||||
# - kubectl apply -f deploy.yaml --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
|
# - kubectl apply -f deploy.yaml --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
|
||||||
# - kubectl apply -f traefik-config.yaml --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
|
# - kubectl apply -f traefik-config.yaml --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
|
||||||
# - kubectl apply -f ingressrouter.yaml --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
|
# - kubectl apply -f ingressrouter.yaml --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
|
||||||
- kubectl create deployment console --image=reg.sre.victor-core.top/cobalt-strike/console:1.3.0 --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem --port=4444
|
# - kubectl create deployment console --image=reg.sre.victor-core.top/cobalt-strike/console:1.3.0 --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem --port=4444
|
||||||
- kubectl expose deployment console --type=NodePort --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
|
# - kubectl expose deployment console --type=NodePort --kubeconfig=.kube/config --certificate-authority=.kube/ca.pem
|
||||||
|
|
||||||
tags:
|
tags:
|
||||||
- cluster
|
- cluster
|
||||||
68
deployment.yaml
Normal file
68
deployment.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user