-
Notifications
You must be signed in to change notification settings - Fork 2
/
deployment.yml
37 lines (37 loc) · 982 Bytes
/
deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sodium-deployment-kubernetes_version
namespace: onebean-func
spec:
replicas: 1
minReadySeconds: 5
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: sodium-kubernetes_version
spec:
hostAliases:
containers:
- name: sodium-pod-kubernetes_version
image: nexus.onebean.net:5000/sodium:latest
imagePullPolicy: Always
env:
- name: JAVA_OPT
value: "default_vm_args"
ports:
- containerPort: 8080
lifecycle:
postStart:
httpGet:
host: uag-host
path: devops/addNode?nodeName=sodium¤tVersion=latest&nodeNamespace=onebean-func
port: uag-port
scheme: HTTP
imagePullSecrets:
- name: secret-register-auth