Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As Apps Operator, I want to deploy my app #15

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
63 changes: 63 additions & 0 deletions best-app-ever/app-manifests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: best-app-ever
namespace: best-app-ever
---
apiVersion: v1
kind: Service
metadata:
name: best-app-ever
namespace: best-app-ever
spec:
type: ClusterIP
ports:
- port: 80
targetPort: http
protocol: TCP
name: test
selector:
app: best-app-ever
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: best-app-ever
namespace: best-app-ever
labels:
app: best-app-ever
spec:
replicas: 1
selector:
matchLabels:
app: best-app-ever
template:
metadata:
labels:
app: best-app-ever
annotations:
sidecar.istio.io/inject: "false"
spec:
serviceAccountName: best-app-ever
securityContext:
{}
containers:
- name: my-chart
securityContext:
{}
image: "nginx:alpine"
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 80
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{}
4 changes: 4 additions & 0 deletions best-app-ever/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: best-app-ever
8 changes: 8 additions & 0 deletions best-app-ever/peerauthentication.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: best-app-ever
namespace: best-app-ever
spec:
mtls:
mode: DISABLE
16 changes: 16 additions & 0 deletions best-app-ever/virtualservice.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: best-app-ever
namespace: best-app-ever
spec:
hosts:
- "*"
gateways:
- istio-ingress/istio-ingressgateway
http:
- route:
- destination:
host: best-app-ever
port:
number: 80