Skip to content

Commit

Permalink
add k8s config
Browse files Browse the repository at this point in the history
  • Loading branch information
Rost-is-love committed May 10, 2024
1 parent 271fc21 commit 8279aee
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ips-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ jobs:
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: get pods
args: apply -n ips -f ./ips_ig/k8s.yaml
35 changes: 35 additions & 0 deletions ips_ig/k8s.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ips-app
namespace: ips
labels:
service: ips-app
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: ips-app
template:
metadata:
labels:
app.kubernetes.io/name: ips-app
spec:
containers:
- name: ips-app
image: ghcr.io/aidbox/app-examples-ips-ig:main
ports:
- name: api
containerPort: 4000
protocol: TCP
# envFrom:
# - configMapRef:
# name: aidbox
# - secretRef:
# name: aidbox
restartPolicy: Always
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%

0 comments on commit 8279aee

Please sign in to comment.