Created
May 19, 2019 13:32
-
-
Save zironycho/86ab13e952281ab2d1383843b9cafadf to your computer and use it in GitHub Desktop.
argocd alb-ingress controller setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
namespace: argocd | |
name: argocd-ingress | |
annotations: | |
kubernetes.io/ingress.class: alb | |
alb.ingress.kubernetes.io/scheme: internet-facing | |
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP":80,"HTTPS": 443}]' | |
alb.ingress.kubernetes.io/certificate-arn: {{ your-acm-arn }} | |
alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}' | |
labels: | |
app: argocd-ingress | |
spec: | |
rules: | |
- host: {{ argocd-service-host }} | |
http: | |
paths: | |
- backend: | |
serviceName: ssl-redirect | |
servicePort: use-annotation | |
- backend: | |
serviceName: argocd-server | |
servicePort: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app.kubernetes.io/component: server | |
app.kubernetes.io/name: argocd-server | |
app.kubernetes.io/part-of: argocd | |
name: argocd-server | |
namespace: argocd | |
spec: | |
selector: | |
matchLabels: | |
app.kubernetes.io/name: argocd-server | |
template: | |
metadata: | |
labels: | |
app.kubernetes.io/name: argocd-server | |
spec: | |
containers: | |
- command: | |
- argocd-server | |
- --staticassets | |
- /shared/app | |
- --insecure | |
image: argoproj/argocd:v1.0.0 | |
imagePullPolicy: Always | |
livenessProbe: | |
httpGet: | |
path: /healthz | |
port: 8080 | |
initialDelaySeconds: 3 | |
periodSeconds: 30 | |
name: argocd-server | |
ports: | |
- containerPort: 8080 | |
- containerPort: 8083 | |
readinessProbe: | |
httpGet: | |
path: /healthz | |
port: 8080 | |
initialDelaySeconds: 3 | |
periodSeconds: 30 | |
volumeMounts: | |
- mountPath: /shared | |
name: static-files | |
initContainers: | |
- command: | |
- cp | |
- -r | |
- /app | |
- /shared | |
image: argoproj/argocd-ui:v1.0.0 | |
imagePullPolicy: Always | |
name: ui | |
volumeMounts: | |
- mountPath: /shared | |
name: static-files | |
serviceAccountName: argocd-server | |
volumes: | |
- emptyDir: {} | |
name: static-files | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app.kubernetes.io/component: server | |
app.kubernetes.io/name: argocd-server | |
app.kubernetes.io/part-of: argocd | |
name: argocd-server | |
namespace: argocd | |
spec: | |
type: NodePort | |
ports: | |
- name: http | |
port: 80 | |
protocol: TCP | |
targetPort: 8080 | |
selector: | |
app.kubernetes.io/name: argocd-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
setup alb-ingress.yaml file