This commit is contained in:
iVamp 2023-11-01 18:32:54 +08:00
parent 76981f6166
commit 971c649f31
2 changed files with 13 additions and 13 deletions

View File

@ -44,8 +44,8 @@ deploy_to_cluster:
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
- kubectl get pods
- kubectl apply -f deploy/manifest.yaml
# - kubectl apply -f deploy/manifest.yaml
- |
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
kubectl -n ecosystem rollout restart deployment oauth
# kubectl -n ecosystem rollout restart deployment oauth
fi

View File

@ -1,22 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: oauth
name: your-name
namespace: ecosystem
spec:
selector:
matchLabels:
app: oauth
app: your-name
framework: laravel
template:
metadata:
labels:
app: oauth
app: your-name
framework: laravel
spec:
containers:
- name: oauth-http
- name: your-name-http
image: registry.daisukide.com:2083/ecosystem/oauth:latest
imagePullPolicy: Always
resources:
@ -45,23 +45,23 @@ spec:
name: oauth-secret
key: redis-password
volumeMounts:
- name: oauth-storage
- name: your-name-storage
mountPath: /app/storage
imagePullSecrets:
- name: registry
volumes:
- name: oauth-storage
- name: your-name-storage
persistentVolumeClaim:
claimName: oauth-storage-pvc
claimName: your-name-storage-pvc
---
apiVersion: v1
kind: Service
metadata:
name: oauth
name: your-name
namespace: ecosystem
spec:
selector:
app: oauth
app: your-name
framework: laravel
ports:
- port: 80
@ -70,11 +70,11 @@ spec:
apiVersion: v1
kind: ConfigMap
metadata:
name: oauth-env
name: your-name-env
namespace: ecosystem
labels:
env: prod
app: oauth
app: your-name
data:
APP_ENV: "production"
DB_USERNAME: "ecosystem_oauth"