Skip to content

Commit 645f663

Browse files
committed
ctor: enable Kubernetes for codingteam.org.ru
1 parent 7eb52ca commit 645f663

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ indent_style = space
66
indent_size = 4
77
trim_trailing_whitespace = true
88
insert_final_newline = true
9+
10+
[*.yaml]
11+
indent_size = 2
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: ctor
5+
spec:
6+
ports:
7+
- nodePort: 32603
8+
port: 80
9+
selector:
10+
app: ctor
11+
type: NodePort
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
annotations:
5+
deployment.kubernetes.io/revision: "1"
6+
labels:
7+
app: ctor
8+
name: ctor
9+
namespace: default
10+
spec:
11+
progressDeadlineSeconds: 600
12+
replicas: 1
13+
revisionHistoryLimit: 10
14+
selector:
15+
matchLabels:
16+
app: ctor
17+
strategy:
18+
rollingUpdate:
19+
maxSurge: 25%
20+
maxUnavailable: 25%
21+
type: RollingUpdate
22+
template:
23+
metadata:
24+
labels:
25+
app: ctor
26+
spec:
27+
containers:
28+
- image: codingteam/codingteam.org.ru:v1.1.0
29+
imagePullPolicy: IfNotPresent
30+
name: codingteam-org-ru
31+
resources: {}
32+
terminationMessagePath: /dev/termination-log
33+
terminationMessagePolicy: File
34+
dnsPolicy: ClusterFirst
35+
restartPolicy: Always
36+
schedulerName: default-scheduler
37+
securityContext: {}
38+
terminationGracePeriodSeconds: 30

ctor/kubernetes/deploy.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Set-StrictMode -Version Latest
2+
$ErrorActionPreference = 'Stop'
3+
4+
kubectl apply -f $PSScriptRoot

0 commit comments

Comments
 (0)