Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
647ee0937e | ||
|
|
2444817f63 | ||
|
|
6e0fe5d06b | ||
|
|
38e753b473 |
@@ -1,47 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: myk3sTest
|
|
||||||
spec:
|
|
||||||
replicas: 2
|
|
||||||
revisionHistoryLimit: 3
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: myk3sTest
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: myk3sTest
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: ${env.REGISTRY}/${env.IMAGE_NAME}:${steps.datetime.outputs.datetime}
|
|
||||||
name: myk3sTest
|
|
||||||
imagePullPolicy: Always
|
|
||||||
readinessProbe:
|
|
||||||
httpGet:
|
|
||||||
path: /actuator/health
|
|
||||||
port: 9090
|
|
||||||
initialDelaySeconds: 1
|
|
||||||
successThreshold: 5
|
|
||||||
ports:
|
|
||||||
- containerPort: 9090
|
|
||||||
imagePullSecrets:
|
|
||||||
- name: dockerhub-id
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: myk3sTest
|
|
||||||
spec:
|
|
||||||
type: NodePort
|
|
||||||
externalTrafficPolicy: Local
|
|
||||||
ports:
|
|
||||||
- name: http-8080
|
|
||||||
protocol: TCP
|
|
||||||
port: 9090
|
|
||||||
nodePort: 30099
|
|
||||||
selector:
|
|
||||||
app: myk3sTest
|
|
||||||
@@ -76,9 +76,10 @@ jobs:
|
|||||||
|
|
||||||
- name: k8s Check and Apply New Deployment
|
- name: k8s Check and Apply New Deployment
|
||||||
uses: http://139.9.216.111:3000/bamanker/steevchen-kubectl@master
|
uses: http://139.9.216.111:3000/bamanker/steevchen-kubectl@master
|
||||||
|
env:
|
||||||
|
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
|
||||||
with:
|
with:
|
||||||
config: ${{ secrets.KUBE_CONFIG }}
|
command: apply -f deployment.yml
|
||||||
command: apply -f http://${{ secrets.DEVOPS_GITEA_TOKEN }}@139.9.216.111:3000/bamanker/myk3sTest/src/branch/master/.deploy/deployment.yml
|
|
||||||
# - name: k8s Update Deployment
|
# - name: k8s Update Deployment
|
||||||
# uses: http://139.9.216.111:3000/bamanker/kubectl@master
|
# uses: http://139.9.216.111:3000/bamanker/kubectl@master
|
||||||
# env:
|
# env:
|
||||||
|
|||||||
Reference in New Issue
Block a user