commit
4e2f8420e1
5 changed files with 94 additions and 0 deletions
@ -0,0 +1,20 @@ |
|||
apiVersion: argoproj.io/v1alpha1 |
|||
kind: Application |
|||
metadata: |
|||
name: tekton |
|||
spec: |
|||
destination: |
|||
name: '' |
|||
namespace: simple-app |
|||
server: 'https://kubernetes.default.svc' |
|||
source: |
|||
path: simple-app |
|||
repoURL: 'https://github.com/nmasse-itix/ArgoCD-Examples.git' |
|||
targetRevision: HEAD |
|||
project: default |
|||
syncPolicy: |
|||
syncOptions: |
|||
- CreateNamespace=true |
|||
automated: |
|||
prune: true |
|||
selfHeal: false |
|||
@ -0,0 +1,37 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: nginx |
|||
spec: |
|||
replicas: 1 |
|||
selector: |
|||
matchLabels: |
|||
name: nginx |
|||
template: |
|||
metadata: |
|||
labels: |
|||
name: nginx |
|||
spec: |
|||
containers: |
|||
- name: nginx |
|||
image: docker.io/nginxinc/nginx-unprivileged:1.23-alpine |
|||
ports: |
|||
- containerPort: 8080 |
|||
readinessProbe: |
|||
failureThreshold: 3 |
|||
httpGet: |
|||
path: / |
|||
port: 8080 |
|||
scheme: HTTP |
|||
initialDelaySeconds: 5 |
|||
periodSeconds: 15 |
|||
successThreshold: 1 |
|||
timeoutSeconds: 5 |
|||
securityContext: |
|||
capabilities: |
|||
drop: [ALL] |
|||
readOnlyRootFilesystem: false |
|||
runAsNonRoot: true |
|||
allowPrivilegeEscalation: false |
|||
terminationGracePeriodSeconds: 30 |
|||
|
|||
@ -0,0 +1,4 @@ |
|||
resources: |
|||
- deployment.yaml |
|||
- service.yaml |
|||
- route.yaml |
|||
@ -0,0 +1,15 @@ |
|||
kind: Route |
|||
apiVersion: route.openshift.io/v1 |
|||
metadata: |
|||
name: nginx |
|||
spec: |
|||
to: |
|||
kind: Service |
|||
name: nginx |
|||
weight: 100 |
|||
port: |
|||
targetPort: 8080 |
|||
tls: |
|||
termination: edge |
|||
insecureEdgeTerminationPolicy: Redirect |
|||
wildcardPolicy: None |
|||
@ -0,0 +1,18 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
name: nginx |
|||
spec: |
|||
type: ClusterIP |
|||
ipFamilies: |
|||
- IPv4 |
|||
ipFamilyPolicy: SingleStack |
|||
ports: |
|||
- name: http |
|||
port: 8080 |
|||
protocol: TCP |
|||
targetPort: 8080 |
|||
selector: |
|||
name: nginx |
|||
sessionAffinity: None |
|||
|
|||
Loading…
Reference in new issue